#include <vector> #include <algorithm> #include <string> #include <cstdio> #include <iostream> using namespace std; int kth(vector<int> &input, int k) { sort(input.begin(), input.end()); return input[input.size() - k]; } int main(int argc, char **ar...