#include #define max(a,b) ((a)>(b))?(a):(b) long a[5000]; int main(int argc, char const *argv[]){ int n,i,j; long k; scanf("%d",&n); for(i=0;ia[i-j]){ k=a[j]; a[j]=a[i-j]; a[i-j]=k; } } } printf("%ld",a[0]); for(i=1;i