#include <stdio.h>
int kaijo(int n){
int x=1,i;
for(i=1;i<=n;i++){
x=x*i;
}
return x;
}
int func(int n){
if(n==1)
return 1;
else
return kaijo(n)-func(n-1);
}
int main(void) {
// your code goes here
int n=4;
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CmludCBrYWlqbyhpbnQgbil7CglpbnQgeD0xLGk7Cglmb3IoaT0xO2k8PW47aSsrKXsKCQkJeD14Kmk7Cgl9CglyZXR1cm4geDsKfQppbnQgZnVuYyhpbnQgbil7CglpZihuPT0xKQoJcmV0dXJuIDE7CgllbHNlCglyZXR1cm4ga2Fpam8obiktZnVuYyhuLTEpOwp9CmludCBtYWluKHZvaWQpIHsKCS8vIHlvdXIgY29kZSBnb2VzIGhlcmUKCWludCBuPTQ7CglwcmludGYoIiVkIixmdW5jKG4pKTsKCXJldHVybiAwOwp9Cg==