Solution to JULKA in Python

4.0M, 0.02s