#!/usr/bin/env python import sys table = r""" | | . ,, N =O= N .|' '|\ .|/ o / / / o /\ |/. \X | / | \ \ | / \|/ -*- /|\ | -+- | J --- o / / / .^^. |--| '__' /| | _|_ /^\ / /__ ^^\ --< __/ / | +-+ | |^^ '-. __' / +-. '_' ^^/ -+ / .^. >-< '_' .^. '-+ / o o o J / < \ ___ --- \ > / ^^\ -' o /^\ |O' \_/ .^^. |__| | | |^^) |--: |__) .^^ | '__ T^^. | | |__' |^^ |-- |__ |^^ |-- | /^^^ | -+ \__| | | |--| | | ^|^ | _|_ ^^| | ._' | / |+ | \ | | |__ |\/| | | | | |\ | | \| | | .^^. | | '__' |^^\ |--' | /^^\ | ./ \_/\ T^^\ |-+' | \ /^^\ \--. .__/ ^T^ | | | | | | '__' \ / \ / V | | ' . ' V V \ / X / \ \ / Y | ^^/ / /__ |^ | |_ \ \ \ ^| | _| .^. ___ \ .^^. |__| | | |^^) |--: |__) .^^ | '__ T^^. | | |__' |^^ |-- |__ |^^ |-- | /^^^ | -+ \__| | | |--| | | ^|^ | _|_ ^^| | ._' | / |+ | \ | | |__ |\/| | | | | |\ | | \| | | .^^. | | '__' |^^\ |--' | /^^\ | ./ \_/\ T^^\ |-+' | \ /^^\ \--. .__/ ^T^ | | | | | | '__' \ / \ / V | | ' . ' V V \ / X / \ \ / Y | ^^/ / /__ /^ > \_ | | | ^\ < _/ .^.^ """; table = [s.split("\n") for s in table[1:-1].split("\n\n")] for let in table: assert len(let) == 3 m = max(len(l) for l in let) for i in range(len(let)): let[i] = (let[i] + " "*m)[:m] for line in sys.stdin: rows = ["", "", ""] for c in line: if ord(c) < 32 or ord(c) >= 127: continue let = table[ord(c) - 32] for i in range(3): rows[i] += " " + let[i] for i in range(3): print(rows[i])