from graphics import *
   
def main():
   l = raw_input("Enter x y dimensions of lot")
   x,y = l.split()
   x,y = float(x), float(y)
   circles = []
   print "\nEnter x y r tuples for potholes (0 0 0 to quit)"
   l = raw_input("")
   cx, cy, r = l.split()
   while float(cx) > 0.0000001:
     circles.append((float(cx), float(cy), float(r)))
     l = raw_input("")
     cx, cy, r = l.split()
   
   scale = 400/x
   w = GraphWin("Potholes", 400, scale*y)
   w.setCoords(0, 0, x, y)
   for (cx, cy, r) in circles:
     circ = Circle(Point(cx, cy), r)
     circ.setFill("black")
     circ.draw(w)
 
   print "click to close"
   w.getMouse()
   w.close()

main()
