#include <stdio.h>
int main() {
int i,n,a[20];
for(i=0;i<n;i++){
}
for(i=n-1; i>=0; i--) {
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpIHsKCWludCBpLG4sYVsyMF07CiAgICBzY2FuZigiJWQiLCZuKTsKICAgIGZvcihpPTA7aTxuO2krKyl7CiAgICBzY2FuZigiJWQiLCZhW2ldKTsKfQogICAgZm9yKGk9bi0xOyBpPj0wOyBpLS0pIHsKCnByaW50ZigiJWQgIixhW2ldKTsKfQoJcmV0dXJuIDA7Cn0K