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OPQRSTUVWXYZ,"] ~ |["ABCDEFGHIJKLNPQRSTUVWXYZABCEFGHIJKLMNOPQRSTVWXYZABCDEFGHIJKMNPQRSTUVWXYZ"] ~ |["ABCDEFGHIJKLNOPQRSTUVWXYZ."] for _(0, ^ss - 1) var s: []char :: ss[_] var offset: int :: 0 for i(0, ^s - 1) switch c(s[i]) case 'A' to 'Z' while('A'.offset(offset % 26) <> c) do cui@print(['A'.offset(offset % 26)]) do offset :+ 1 end while do offset :+ 1 default do cui@print([s[i]]) end switch end for do cui@print(" ") end for do cui@print("\n") end if var ss: [][]char :: cui@input().split(" ") var N: int :: ss[0].toInt(&) var M: int :: ss[1].toInt(&) var ans: int :: 1 if(N >= M) do ans :: 0 else for n(1, N) do ans :* n do ans :% M end for end if do cui@print("\{ans}\n") end func