import math import time s = math.sin q = math.sqrt i = lambda a, b, c: a in range(b, c) def c(x, y): # http://www.purplemath.com/modules/distform.htm t = time.time() * 1000 / 74 v = s(q((x + t - 99) ** 2 + (y - 66) ** 2) / 7) + s(q((x - 99) ** 2 + (y - 66) ** 2) / 7) + s(q((x - 99) ** 2 + (t / 4) ** 2) / 7) + s(q((x - 99) ** 2 + (y + t - 66) ** 2) / 7) return int((7 + v) * 20) def C(v): return " " if i(v, 50, 59) else "'" if i(v, 60, 70) else "." if i(v, 70, 74) else ":" if i(v, 75, 99) else "!" if i(v, 100, 124) else "s" if i(v, 125, 174) else "5" if i(v, 175, 199) else "%" if i(v, 200, 224) else "#" if i(v, 225, 255) else "$" def P(): print("\n".join("".join([C(c(y, x)) for x in range(74, 0, -1)]) for y in range(42, 0, -1)), flush=1) time.sleep(0.041) if __name__ == "__main__": while 1: P()