#include using namespace std; void solve() { int n, m; cin >> n >> m; for (int i=0; i> a >> b; if (a > b) cout << 0 << "\n"; else cout << 1 << "\n"; } } int main(int argc, char *argv[]) { ios::sync_with_stdio(false); cin.tie(nullptr); solve(); return 0; }