#include <stdio.h>
int main(void) {
int n,i,max=0,min=1000,a;
for(i=1;i<=n;i++){
if(a>max){
max=a;
}
if(a<min){
min=a;
}
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKSB7CglpbnQgbixpLG1heD0wLG1pbj0xMDAwLGE7CglzY2FuZigiJWQiLCZuKTsKCWZvcihpPTE7aTw9bjtpKyspewoJCXNjYW5mKCIlZCIsJmEpOwoJCWlmKGE+bWF4KXsKCQkJbWF4PWE7CgkJfQoJCWlmKGE8bWluKXsKCQkJbWluPWE7CgkJfQoJfQoJcHJpbnRmKCIlZCIsbWF4LW1pbik7CglyZXR1cm4gMDsKfQo=