#include int main() { int n,i,num; int max=-1000000000,min=1000000000; scanf("%d",&n); for(i=0;imax)max=num; if(num