#include <stdio.h>
int calc(int n){
int i;
int a=1;
if( n < 0 ){
n = n*(-1);
return calc(n);
}
else {
for(i=1;i<=n;i++){
a*=i;
}
}
return a;
}
int main(void) {
int n=-3;
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgY2FsYyhpbnQgbil7CgkKCWludCBpOwoJaW50IGE9MTsKCWlmKCBuIDwgMCApewoJCW4gPSBuKigtMSk7CgkJcmV0dXJuIGNhbGMobik7Cgl9CgkKCQoJZWxzZSB7Cglmb3IoaT0xO2k8PW47aSsrKXsKCQlhKj1pOwoJfQoJfQoJcmV0dXJuIGE7Cn0KCgoKaW50IG1haW4odm9pZCkgewoJaW50IG49LTM7CglwcmludGYoIiVkIixjYWxjKG4pKTsKCQoJCglyZXR1cm4gMDsKfQo=