class Main{
java.
util.
Scanner i
= new java.
util.
Scanner(System.
in); int n = i.nextInt();
long factorial = 1;
for(int k = 1; k <= n; k++) {
factorial *= k;
}
}
}
Y2xhc3MgTWFpbnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbiAJewoJCWphdmEudXRpbC5TY2FubmVyIGkgPSBuZXcgamF2YS51dGlsLlNjYW5uZXIoU3lzdGVtLmluKTsKCQlpbnQgbiA9IGkubmV4dEludCgpOwoJCWxvbmcgZmFjdG9yaWFsID0gMTsKICAgIAlmb3IoaW50IGsgPSAxOyBrIDw9IG47IGsrKykgewogICAgICAgIAlmYWN0b3JpYWwgKj0gazsKICAgIAl9CiAgICAJU3lzdGVtLm91dC5wcmludChmYWN0b3JpYWwpOwoJfQp9