#include // #include "atcoder/all" using namespace std; using i64 = long long; const i64 MOD = 1e9 + 7; const i64 INF = i64(1e18); template bool chmin(T& x, T y){ if(x > y){ x = y; return true; } return false; } template bool chmax(T& x, T y){ if(x < y){ x = y; return true; } return false; } namespace Rnd{ // doc: https://shibh308.github.io/library/library/lib/functions/xorshift.cpp.html uint64_t x = 0xdeadbeef0110dead; uint64_t rnd(){ x ^= x << 7; x ^= x >> 9; return x; } uint64_t rnd(int n){ return rnd() % n; } double rnd_double(){ return 1.0 * rnd() / numeric_limits::max(); } vector rnd_perm(int n){ vector v(n); iota(v.begin(), v.end(), 0); for(int i = n - 1; i >= 1; --i){ int j = rnd(i + 1); swap(v[i], v[j]); } return v; } template void shuffle(vector& v){ int n = v.size(); for(int i = n - 1; i >= 1; --i){ int j = rnd(i + 1); swap(v[i], v[j]); } } } namespace params{ void load_params(){ ifstream ifs("../params.txt"); assert(ifs.is_open()); } } constexpr int n = 14; constexpr int m = 3000; constexpr int turn_max = 400; vector stx, sty, enx, eny; void read_file(istream& ifs){ int _1, _2; ifs >> _1 >> _2; stx.resize(m); sty.resize(m); enx.resize(m); eny.resize(m); for(int i = 0; i < m; ++i){ ifs >> stx[i] >> sty[i] >> enx[i] >> eny[i]; } // TODO: input } clock_t st_clock; void solve(){ array, n> flags; for(int i = 0; i < turn_max; ++i){ { int a, b; cin >> a >> b; } cout << 3 << endl; } } signed main(){ st_clock = clock(); #ifdef OPTIMIZE params::load_params(); #endif #ifndef HAND read_file(cin); #else ifstream ifs("../contests/yukisc5/in0.txt"); assert(ifs.is_open()); read_file(ifs); #endif solve(); }