#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; const int INF=0x3f3f3f3f; typedef long long ll; typedef unsigned long long ull; #define fi first #define se second #define prN printf("\n") #define SI(N) scanf("%d",&(N)) #define SII(N,M) scanf("%d%d",&(N),&(M)) #define SIII(N,M,K) scanf("%d%d%d",&(N),&(M),&(K)) #define cle(a,val) memset(a,(val),sizeof(a)) #define rep(i,b) for(int i=0;i<(b);i++) #define Rep(i,a,b) for(int i=(a);i<(b);i++) const double PI=3.1415926; int k=0; int main() { int o; cin>>o; while(o--) { int n; cin>>n; int a; int ans=0; for (int i=0;i>a; ans=max(ans,a); } printf("%d\n",ans); } return 0; }