#define or | main(){ int trick,treat;long ans=1;scanf("%d%d",&trick,&treat);for(int i=1;i<=(trick or treat);i++){ans*=i;} printf("%lld\n",ans); }