def printTopHat():
	print "                 o  o          "
	print "      oMMMMMMMMMMMMMMMMMMMMMMoo"
	print "      MMMMMMMMMMMMMMMMMMMMMMMMM"
	print "      \"MMMMMMMMMMMMMMMMMMMMMMMo"
	print "      \"MMMMMMMMMMMMMMMMMMMMMMMo"
	print "      \"MMMMMMMMMMMMMMMMMMMMMMMo"
	print "      \"MMMMMMMMMMMMMMMMMMMMMMM"
	print "      \"MMMMMMMMMMMMMMMMMMMMMMM\""
	print "      oMMMMMMMMMMMMMMMMMMMMMMM"
	print "       MMMMMMMMMMMMMMMMMMMMMMM"
	print "       MMMMMMMMMMMMMMMMMMMMMMM"
	print "       MMMMMMMMMMMMMMMMMMMMMMM"
	print "       MMMMMMMMMMMMMMMMMMMMMMM"
	print "      \"\"\"\"MMMMMMMMMMMMMMM\"\"\""
	print "ooMMoo        \" \" \" \"        oMMMoo"
	print "oMMMMMMMo                   oMMMMMMMM"
	print "\"MMMMMMMMMMooooooooooooMoMMMMMMMMM\"                                ooooo        ooooo"
	print "  \"\"MMMMMMMMMMMMMMMMMMMMMMMMMMMM\"                                  MMMMM       \"MMMMo                         ooMo\""
	print "      \"\"\"\"\"MMMMMMMMMMMMMM\"\"\"                                       MMMMM       \"MMMMo                        MMMMM"
	print "              oMMMMMo          o o o             o    o o          MMMMM       \"MMMM\"          o o o         MMMMM o"
	print "              oMMMMMo       oMMMMMMMMMo       MMMMMoMMMMMMMo       MMMMM       \"MMMMM     ooMMMMMMMMMMo    \"MMMMMMMMMM"
	print "              oMMMMM\"      MMMMM\"\"\"MMMMMM     oMMMMMMM\"MMMMMMo     MMMMMMooooooMMMMMo     MMMMM\"M\"MMMMMo   \"\"MMMMM"
	print "              oMMMMMM     MMMMM     \"MMMMo    oMMMM\"     MMMMM     MMMMMMMMMMMMMMMMM\"      \"\"      MMMMM     MMMMM"
	print "              oMMMMMo    oMMMMM      MMMMM    oMMMM      MMMMMM    MMMMM\"\"\"\"\"\"\"MMMMMM        ooooooMMMMo     oMMMMo"
	print "              oMMMMM\"    \"MMMMM      MMMMMo   oMMMMo     \"MMMMo    MMMMMo      \"MMMMo     oMMMMMMMMMMMMM     MMMMM"
	print "              \"MMMMMM    \"MMMMM     oMMMMM    oMMMM      MMMMMo    MMMMM       \"MMMM\"    MMMMM\"\" \" MMMMo     oMMMM"
	print "              \"MMMMMo     MMMMM     oMMMMM    oMMMMo     MMMMM     MMMMM       \"MMMMM    MMMMM     MMMM\"     MMMMM"
	print "              \"MMMMMo     \"MMMMMooooMMMM\"     oMMMMMoooMMMMMM\"     MMMMM       MMMMMo    MMMMMMo oMMMMMM     oMMMMMo o"
	print "              MMMMMM\"       \"MMMMMMMMMM\"      oMMMMMMMMMMMM\"       MMMMMo      oMMMM\"     MMMMMMMMMMMMMMM     MMMMMMMMo"
	print "              oMMMMM\"          \" \"\"\"          oMMMM \"\"\"\"\"           \" \"         \" \" \"       \"\"\"\"\"\"    "
	print "              oM\"\"                            oMMMM"
	print "                                              oMMMM"
	print "                                              oMMM"""

def writeTopHatToInstance(instance):
	instance.transport.write( "                 o  o          \n\r")
	instance.transport.write( "      oMMMMMMMMMMMMMMMMMMMMMMoo\n\r")
	instance.transport.write( "      MMMMMMMMMMMMMMMMMMMMMMMMM\n\r")
	instance.transport.write( "      \"MMMMMMMMMMMMMMMMMMMMMMMo\n\r")
	instance.transport.write( "      \"MMMMMMMMMMMMMMMMMMMMMMMo\n\r")
	instance.transport.write( "      \"MMMMMMMMMMMMMMMMMMMMMMMo\n\r")
	instance.transport.write( "      \"MMMMMMMMMMMMMMMMMMMMMMM\n\r")
	instance.transport.write( "      \"MMMMMMMMMMMMMMMMMMMMMMM\"\n\r")
	instance.transport.write( "      oMMMMMMMMMMMMMMMMMMMMMMM\n\r")
	instance.transport.write( "       MMMMMMMMMMMMMMMMMMMMMMM\n\r")
	instance.transport.write( "       MMMMMMMMMMMMMMMMMMMMMMM\n\r")
	instance.transport.write( "       MMMMMMMMMMMMMMMMMMMMMMM\n\r")
	instance.transport.write( "       MMMMMMMMMMMMMMMMMMMMMMM\n\r")
	instance.transport.write( "      \"\"\"\"MMMMMMMMMMMMMMM\"\"\"\n\r")
	instance.transport.write( "ooMMoo        \" \" \" \"        oMMMoo\n\r")
	instance.transport.write( "oMMMMMMMo                   oMMMMMMMM\n\r")
	instance.transport.write( "\"MMMMMMMMMMooooooooooooMoMMMMMMMMM\"                                ooooo        ooooo\n\r")
	instance.transport.write( "  \"\"MMMMMMMMMMMMMMMMMMMMMMMMMMMM\"                                  MMMMM       \"MMMMo                         ooMo\"\n\r")
	instance.transport.write( "      \"\"\"\"\"MMMMMMMMMMMMMM\"\"\"                                       MMMMM       \"MMMMo                        MMMMM\n\r")
	instance.transport.write( "              oMMMMMo          o o o             o    o o          MMMMM       \"MMMM\"          o o o         MMMMM o\n\r")
	instance.transport.write( "              oMMMMMo       oMMMMMMMMMo       MMMMMoMMMMMMMo       MMMMM       \"MMMMM     ooMMMMMMMMMMo    \"MMMMMMMMMM\n\r")
	instance.transport.write( "              oMMMMM\"      MMMMM\"\"\"MMMMMM     oMMMMMMM\"MMMMMMo     MMMMMMooooooMMMMMo     MMMMM\"M\"MMMMMo   \"\"MMMMM\n\r")
	instance.transport.write( "              oMMMMMM     MMMMM     \"MMMMo    oMMMM\"     MMMMM     MMMMMMMMMMMMMMMMM\"      \"\"      MMMMM     MMMMM\n\r")
	instance.transport.write( "              oMMMMMo    oMMMMM      MMMMM    oMMMM      MMMMMM    MMMMM\"\"\"\"\"\"\"MMMMMM        ooooooMMMMo     oMMMMo\n\r")
	instance.transport.write( "              oMMMMM\"    \"MMMMM      MMMMMo   oMMMMo     \"MMMMo    MMMMMo      \"MMMMo     oMMMMMMMMMMMMM     MMMMM\n\r")
	instance.transport.write( "              \"MMMMMM    \"MMMMM     oMMMMM    oMMMM      MMMMMo    MMMMM       \"MMMM\"    MMMMM\"\" \" MMMMo     oMMMM\n\r")
	instance.transport.write( "              \"MMMMMo     MMMMM     oMMMMM    oMMMMo     MMMMM     MMMMM       \"MMMMM    MMMMM     MMMM\"     MMMMM\n\r")
	instance.transport.write( "              \"MMMMMo     \"MMMMMooooMMMM\"     oMMMMMoooMMMMMM\"     MMMMM       MMMMMo    MMMMMMo oMMMMMM     oMMMMMo o\n\r")
	instance.transport.write( "              MMMMMM\"       \"MMMMMMMMMM\"      oMMMMMMMMMMMM\"       MMMMMo      oMMMM\"     MMMMMMMMMMMMMMM     MMMMMMMMo\n\r")
	instance.transport.write( "              oMMMMM\"          \" \"\"\"          oMMMM \"\"\"\"\"           \" \"         \" \" \"       \"\"\"\"\"\"    \n\r")
	instance.transport.write( "              oM\"\"                            oMMMM\n\r")
	instance.transport.write( "                                              oMMMM\n\r")
	instance.transport.write( "                                              oMMM""\n\r")

