# Thu May 9 19:03:45 PDT 2013 # Fri May 10 17:44:41 PDT 2013 import math # input data data = [[2, 18, 1, 7, 14, 5, 7, 14, 19, 2, 20, 13, 14, 1, 9, 18, 14, 18, 12, 7], [7, 4, 17, 15, 6, 18, 15, 10, 16, 2, 13, 2, 13, 19, 7, 14, 14, 9, 16, 20], [11, 18, 15, 8, 20, 5, 14, 14, 5, 1, 19, 16, 18, 14, 20, 18, 16, 1, 10, 16], [17, 11, 5, 8, 20, 4, 5, 5, 12, 4, 17, 13, 15, 19, 20, 16, 6, 8, 7, 9], [17, 14, 8, 11, 18, 13, 20, 1, 10, 14, 2, 12, 16, 14, 14, 17, 11, 9, 16, 6], [7, 17, 18, 3, 4, 11, 4, 16, 10, 19, 9, 11, 16, 9, 11, 11, 19, 3, 7, 8], [5, 7, 10, 3, 5, 19, 8, 19, 7, 1, 19, 16, 20, 2, 3, 13, 15, 18, 13, 20], [6, 4, 9, 17, 20, 4, 3, 3, 10, 14, 9, 4, 5, 14, 16, 7, 13, 12, 16, 10], [12, 12, 17, 3, 12, 13, 18, 20, 2, 20, 7, 15, 15, 5, 3, 7, 17, 12, 5, 12], [20, 5, 8, 2, 9, 8, 2, 8, 5, 16, 14, 8, 9, 5, 20, 12, 14, 2, 5, 19], [13, 5, 9, 7, 5, 7, 16, 10, 3, 18, 13, 7, 8, 16, 18, 20, 13, 2, 2, 11], [19, 13, 16, 11, 9, 13, 7, 4, 18, 19, 19, 19, 19, 5, 1, 7, 6, 16, 10, 15]] print 'smooth' print 12*20 for x in range (1.0,13.0): theta = x*3.1416/6.0 for z in range (1.0,21.0): y = data[x - 1][z - 1]/10.0 r = 10.0 + y final_x = math.sin(theta)*r final_y = -math.cos(theta)*r print "%f %f %f 0.0 1.0 1.0" % (final_x,final_y,z) for g in range (0,11): h = 20*g for i in range (1,20): print "4" print "%d %d %d %d" % (i + h, i + h + 1, i + h + 21, i + h + 20)