#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define bug puts("============="); #define pi (acos(-1.0)) #define INF (1ll<<62) #define scnaf scanf using namespace std; typedef long long ll; #define mem(x,y) memset(x,y,sizeof(x)) #define inf 0x3f3f3f3f #define debug puts("-------------------"); #define uLL unsigned long long #define deltat 1e-8 #define maxn 300005 ll a[maxn]; int main() { int T; scanf("%d",&T); while(T--) { int n,k; scanf("%d%d",&n,&k); for(int i=0;in)ans=n; printf("%I64d\n",ans); } }