import std.stdio, std.array, std.conv, std.string, std.algorithm, std.range;

void main() {
  long n = readln.chomp.to!long;

  long ans = 1;
  for (long i = 1; i <= 20; i++) {
    ans *= i;
  }

  ans.writeln;
}