import os
from graphics import *
win_width = 612
win_height = 768
win = GraphWin("sampleinput2", win_width, win_height)
win.setCoords(0,0,win_width,win_height)

blank = Image(Point(306,384),"blank.gif")
blank.draw(win)

new_note = Oval(Point(50,708),Point(60,713))
new_note_line = Rectangle(Point(48,710),Point(62,711))
new_note_line.setFill("black")
new_note.setFill("black")
new_note.draw(win)
new_note_line.draw(win)
new_note_stem = Rectangle(Point(59,712),Point(60,739))
new_note_stem.setFill("black")
new_note_stem.draw(win)
new_note = Oval(Point(75,708),Point(85,713))
new_note_line = Rectangle(Point(73,710),Point(87,711))
new_note_line.setFill("black")
new_note.setFill("black")
new_note.draw(win)
new_note_line.draw(win)
new_note_stem = Rectangle(Point(84,712),Point(85,739))
new_note_stem.setFill("black")
new_note_stem.draw(win)
new_note = Oval(Point(100,712),Point(110,717))
new_note.setFill("black")
new_note.draw(win)
new_note_stem = Rectangle(Point(109,716),Point(110,743))
new_note_stem.setFill("black")
new_note_stem.draw(win)
new_note = Oval(Point(125,708),Point(135,713))
new_note_line = Rectangle(Point(123,710),Point(137,711))
new_note_line.setFill("black")
new_note.setFill("black")
new_note.draw(win)
new_note_line.draw(win)
new_note_stem = Rectangle(Point(134,712),Point(135,739))
new_note_stem.setFill("black")
new_note_stem.draw(win)
bar_line = Rectangle(Point(142,720), Point(142,754))
bar_line.setFill("black")
bar_line.draw(win)
new_note = Oval(Point(150,712),Point(160,717))
new_note.setFill("black")
new_note.draw(win)
new_note_stem = Rectangle(Point(159,716),Point(160,743))
new_note_stem.setFill("black")
new_note_stem.draw(win)
new_note = Oval(Point(175,717),Point(185,722))
new_note.setFill("black")
new_note.draw(win)
new_note_stem = Rectangle(Point(184,721),Point(185,748))
new_note_stem.setFill("black")
new_note_stem.draw(win)
new_note = Oval(Point(200,721),Point(210,726))
new_note.setFill("black")
new_note.draw(win)
new_note_stem = Rectangle(Point(209,725),Point(210,752))
new_note_stem.setFill("black")
new_note_stem.draw(win)
new_note = Oval(Point(225,726),Point(235,731))
new_note.setFill("black")
new_note.draw(win)
new_note_stem = Rectangle(Point(234,730),Point(235,757))
new_note_stem.setFill("black")
new_note_stem.draw(win)
bar_line = Rectangle(Point(242,720), Point(242,754))
bar_line.setFill("black")
bar_line.draw(win)
new_note = Oval(Point(250,730),Point(260,735))
new_note.setFill("black")
new_note.draw(win)
new_note_stem = Rectangle(Point(259,734),Point(260,761))
new_note_stem.setFill("black")
new_note_stem.draw(win)
new_note = Oval(Point(275,735),Point(285,740))
new_note.setFill("black")
new_note.draw(win)
new_note_stem = Rectangle(Point(284,739),Point(285,766))
new_note_stem.setFill("black")
new_note_stem.draw(win)
new_note = Oval(Point(300,739),Point(310,744))
new_note.setFill("black")
new_note.draw(win)
new_note_stem = Rectangle(Point(301,740),Point(300,713))
new_note_stem.setFill("black")
new_note_stem.draw(win)
new_note = Oval(Point(325,743),Point(335,748))
new_note.setFill("black")
new_note.draw(win)
new_note_stem = Rectangle(Point(326,744),Point(325,717))
new_note_stem.setFill("black")
new_note_stem.draw(win)
bar_line = Rectangle(Point(342,720), Point(342,754))
bar_line.setFill("black")
bar_line.draw(win)
rest = Image(Point(350,740), "resize_rest.gif")
rest.draw(win)
new_note = Oval(Point(375,748),Point(385,753))
new_note.setFill("black")
new_note.draw(win)
new_note_stem = Rectangle(Point(376,749),Point(375,722))
new_note_stem.setFill("black")
new_note_stem.draw(win)
new_note = Oval(Point(400,752),Point(410,757))
new_note.setFill("black")
new_note.draw(win)
new_note_stem = Rectangle(Point(401,753),Point(400,726))
new_note_stem.setFill("black")
new_note_stem.draw(win)
new_note = Oval(Point(425,757),Point(435,762))
new_note.setFill("black")
new_note.draw(win)
new_note_stem = Rectangle(Point(426,758),Point(425,731))
new_note_stem.setFill("black")
new_note_stem.draw(win)
bar_line = Rectangle(Point(442,720), Point(442,754))
bar_line.setFill("black")
bar_line.draw(win)
rest = Image(Point(450,740), "resize_rest.gif")
rest.draw(win)
new_note = Oval(Point(475,761),Point(485,766))
new_note_line = Rectangle(Point(473,763),Point(487,764))
new_note_line.setFill("black")
new_note.setFill("black")
new_note.draw(win)
new_note_line.draw(win)
new_note_stem = Rectangle(Point(476,762),Point(475,735))
new_note_stem.setFill("black")
new_note_stem.draw(win)
new_note = Oval(Point(500,761),Point(510,766))
new_note_line = Rectangle(Point(498,763),Point(512,764))
new_note_line.setFill("black")
new_note.setFill("black")
new_note.draw(win)
new_note_line.draw(win)
new_note_stem = Rectangle(Point(501,762),Point(500,735))
new_note_stem.setFill("black")
new_note_stem.draw(win)
new_note = Oval(Point(525,757),Point(535,762))
new_note.setFill("black")
new_note.draw(win)
new_note_stem = Rectangle(Point(526,758),Point(525,731))
new_note_stem.setFill("black")
new_note_stem.draw(win)
bar_line = Rectangle(Point(542,720), Point(542,754))
bar_line.setFill("black")
bar_line.draw(win)
new_note = Oval(Point(550,752),Point(560,757))
new_note.setFill("black")
new_note.draw(win)
new_note_stem = Rectangle(Point(551,753),Point(550,726))
new_note_stem.setFill("black")
new_note_stem.draw(win)
new_note = Oval(Point(575,748),Point(585,753))
new_note.setFill("black")
new_note.draw(win)
new_note_stem = Rectangle(Point(576,749),Point(575,722))
new_note_stem.setFill("black")
new_note_stem.draw(win)
new_note = Oval(Point(50,638),Point(60,643))
new_note_line = Rectangle(Point(48,640),Point(62,641))
new_note_line.setFill("black")
new_note.setFill("black")
new_note.draw(win)
new_note_line.draw(win)
new_note_stem = Rectangle(Point(59,642),Point(60,669))
new_note_stem.setFill("black")
new_note_stem.draw(win)
new_note = Oval(Point(75,647),Point(85,652))
new_note.setFill("black")
new_note.draw(win)
new_note_stem = Rectangle(Point(84,651),Point(85,678))
new_note_stem.setFill("black")
new_note_stem.draw(win)
bar_line = Rectangle(Point(92,650), Point(92,684))
bar_line.setFill("black")
bar_line.draw(win)
new_note = Oval(Point(100,656),Point(110,661))
new_note.setFill("black")
new_note.draw(win)
new_note_stem = Rectangle(Point(109,660),Point(110,687))
new_note_stem.setFill("black")
new_note_stem.draw(win)
new_note = Oval(Point(125,642),Point(135,647))
new_note.setFill("black")
new_note.draw(win)
new_note_stem = Rectangle(Point(134,646),Point(135,673))
new_note_stem.setFill("black")
new_note_stem.draw(win)
new_note = Oval(Point(150,651),Point(160,656))
new_note.setFill("black")
new_note.draw(win)
new_note_stem = Rectangle(Point(159,655),Point(160,682))
new_note_stem.setFill("black")
new_note_stem.draw(win)
rest = Image(Point(175,670), "resize_rest.gif")
rest.draw(win)
bar_line = Rectangle(Point(192,650), Point(192,684))
bar_line.setFill("black")
bar_line.draw(win)
new_note = Oval(Point(200,638),Point(210,643))
new_note_line = Rectangle(Point(198,640),Point(212,641))
new_note_line.setFill("black")
new_note.setFill("black")
new_note.draw(win)
new_note_line.draw(win)
new_note_stem = Rectangle(Point(209,642),Point(210,669))
new_note_stem.setFill("black")
new_note_stem.draw(win)
new_note = Oval(Point(200,647),Point(210,652))
new_note.setFill("black")
new_note.draw(win)
new_note_stem = Rectangle(Point(209,651),Point(210,678))
new_note_stem.setFill("black")
new_note_stem.draw(win)
new_note = Oval(Point(200,656),Point(210,661))
new_note.setFill("black")
new_note.draw(win)
new_note_stem = Rectangle(Point(209,660),Point(210,687))
new_note_stem.setFill("black")
new_note_stem.draw(win)
rest = Image(Point(225,670), "resize_rest.gif")
rest.draw(win)
new_note = Oval(Point(250,642),Point(260,647))
new_note.setFill("black")
new_note.draw(win)
new_note_stem = Rectangle(Point(259,646),Point(260,673))
new_note_stem.setFill("black")
new_note_stem.draw(win)
new_note = Oval(Point(250,651),Point(260,656))
new_note.setFill("black")
new_note.draw(win)
new_note_stem = Rectangle(Point(259,655),Point(260,682))
new_note_stem.setFill("black")
new_note_stem.draw(win)
new_note = Oval(Point(250,660),Point(260,665))
new_note.setFill("black")
new_note.draw(win)
new_note_stem = Rectangle(Point(259,664),Point(260,691))
new_note_stem.setFill("black")
new_note_stem.draw(win)
new_note = Oval(Point(275,669),Point(285,674))
new_note.setFill("black")
new_note.draw(win)
new_note_stem = Rectangle(Point(276,670),Point(275,643))
new_note_stem.setFill("black")
new_note_stem.draw(win)
bar_line = Rectangle(Point(292,650), Point(292,684))
bar_line.setFill("black")
bar_line.draw(win)
new_note = Oval(Point(300,638),Point(310,643))
new_note_line = Rectangle(Point(298,640),Point(312,641))
new_note_line.setFill("black")
new_note.draw(win)
new_note_line.draw(win)
new_note_stem = Rectangle(Point(309,642),Point(310,669))
new_note_stem.setFill("black")
new_note_stem.draw(win)
new_note = Oval(Point(325,660),Point(335,665))
new_note.draw(win)
new_note_stem = Rectangle(Point(334,664),Point(335,691))
new_note_stem.setFill("black")
new_note_stem.draw(win)
bar_line = Rectangle(Point(342,650), Point(342,684))
bar_line.setFill("black")
bar_line.draw(win)
new_note = Oval(Point(350,656),Point(360,661))
new_note.draw(win)
new_note_stem = Rectangle(Point(359,660),Point(360,687))
new_note_stem.setFill("black")
new_note_stem.draw(win)
rest = Image(Point(375,670), "resize_rest.gif")
rest.draw(win)
rest = Image(Point(400,670), "resize_rest.gif")
rest.draw(win)
bar_line = Rectangle(Point(417,650), Point(417,684))
bar_line.setFill("black")
bar_line.draw(win)
new_note = Oval(Point(425,638),Point(435,643))
new_note_line = Rectangle(Point(423,640),Point(437,641))
new_note_line.setFill("black")
new_note.draw(win)
new_note_line.draw(win)
new_note_stem = Rectangle(Point(434,642),Point(435,669))
new_note_stem.setFill("black")
new_note_stem.draw(win)
new_note = Oval(Point(425,647),Point(435,652))
new_note.draw(win)
new_note_stem = Rectangle(Point(434,651),Point(435,678))
new_note_stem.setFill("black")
new_note_stem.draw(win)
new_note = Oval(Point(425,656),Point(435,661))
new_note.draw(win)
new_note_stem = Rectangle(Point(434,660),Point(435,687))
new_note_stem.setFill("black")
new_note_stem.draw(win)
new_note = Oval(Point(450,665),Point(460,670))
new_note.draw(win)
new_note_stem = Rectangle(Point(459,669),Point(460,696))
new_note_stem.setFill("black")
new_note_stem.draw(win)
bar_line = Rectangle(Point(467,650), Point(467,684))
bar_line.setFill("black")
bar_line.draw(win)
new_note = Oval(Point(475,665),Point(485,670))
new_note.draw(win)
new_note_stem = Rectangle(Point(484,669),Point(485,696))
new_note_stem.setFill("black")
new_note_stem.draw(win)
win.getMouse()
win.close()
