Rosetta Problems

Digits Paradise in Hexadecimal

https://atcoder.jp/contests/abc194/tasks/abc194_f