Rosetta Problems

Is It a Number?

https://atcoder.jp/contests/past201912-open/tasks/past201912_a