#include #include bool query(int i, int x, int j, int y) { std::cout << "? " << i << ' ' << x << ' ' << j << ' ' << y << '\n', std::cout.flush(); std::string response; std::cin >> response; return response == "Yes"; } void output_answer(int n, int i1, int j1, int i2, int j2, int i3, int j3) { std::cout << "!"; for (int i = 0; i < n; ++i) std::cout << ' ' << i1 << ' ' << j1; for (int i = 0; i < n; ++i) std::cout << ' ' << i2 << ' ' << j2; for (int i = 0; i < n; ++i) std::cout << ' ' << i3 << ' ' << j3; std::cout << '\n', std::cout.flush(); } int main() { int n; std::cin >> n; query(1, 1, 1, 1); query(1, 1, 1, 1); query(1, 1, 1, 1); query(1, 1, 1, 1); output_answer(n, 1, 2, 2, 3, 3, 1); }