#include int main(){ int n,t; int max=0,min=1001; scanf("%d",&n); for(int i=0;imax){ max=t; } if(t