Oma's mod47 solution

+2
PY
py
OUTPUT