#include #ifdef LOCAL #include "./debug.cpp" #else #define debug(...) #define print_line #endif using namespace std; using ll = long long; int main() { int trick, treat; cin >> trick >> treat; int trick_or_treat = trick | treat; int trick_or_treat_1 = 1; for (int i = 1; i <= trick_or_treat_1; i++) { trick_or_treat_1 *= i; } cout << trick_or_treat_1 << endl; }