#include <vector> 

bool query(int A, int B, int C);
std::vector <int> solve(int N);