#include <bits/stdc++.h>
#define int long long
using namespace std;
int T;
int k;
double p;
signed main()
{
ios::sync_with_stdio(0),cin.tie(0),cout.tie(0);
cin >> T;
while(T--)
{
cin >> k >> p;
cout << k << "\n";
}
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CiNkZWZpbmUgaW50IGxvbmcgbG9uZwp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IFQ7CmludCBrOwpkb3VibGUgcDsKc2lnbmVkIG1haW4oKQp7CiAgICBpb3M6OnN5bmNfd2l0aF9zdGRpbygwKSxjaW4udGllKDApLGNvdXQudGllKDApOwogICAgY2luID4+IFQ7CiAgICB3aGlsZShULS0pCiAgICB7CiAgICAgICAgY2luID4+IGsgPj4gcDsKICAgICAgICBjb3V0IDw8IGsgPDwgIlxuIjsKICAgIH0KfQ==