Rosetta Problems

ab = n!

https://hoj.hamako-ths.ed.jp/onlinejudge/problems/830