int fib(int n) { if (n <= 0) { return 1; } else { return fib(n * fib(n - 1)); } } int main(void) { int x; x = fib(input()); output(x); }