s="UuuoUU"+"OoUu"*3;gets.scan(/\w/){$><<"%%cw%c "%s[n=$&.hex]%s[n/4+8]}