#include <iostream>
using namespace std;

int main() {
	// your code goes here
	return 0;
}

std::string who_is_next(std::vector<std::string> v, long n) {
  long l = pow(2, floor(log2(ceil((double)n-- / v.size()))));
  return v[(n - (l - 1) * v.size()) / l];
}