#include <stdio.h>
int kaizyou(int n){
int r,i;
r=1;
for(i=n;i>=1;i--){
r=r*i;
}
return r;
}
int main(void){
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQga2FpenlvdShpbnQgbil7CglpbnQgcixpOwoJcj0xOwoJZm9yKGk9bjtpPj0xO2ktLSl7CgkJcj1yKmk7Cgl9CglyZXR1cm4gcjsKfQoKaW50IG1haW4odm9pZCl7CgkKCXByaW50ZigiJWQiLGthaXp5b3UoNCkpOwoJCglyZXR1cm4gMDsKfQo=