#include #include #include #include #include #include #include #define LL long long #define INF 0x3f3f3f3f #define RR freopen("D:\\in.txt","r",stdin) #define WW freopen("D:\\out.txt","w",stdout) using namespace std; const int maxn = 5e4+7; int main() { int n,t,i,a[33]; scanf("%d",&t); while(t--) { scanf("%d",&n); for(i=1;i<=n;i++) scanf("%d",a+i); sort(a+1,a+1+n); printf("%d\n",a[n]); } return 0; }