#b = [(2, 4), (5, 10),(6, 20), (50, 50)]
'''
x: 2, y: 4
x: 5, y: 4
'''

#for i, j in b:
	#print "x:{}, y:{}".format(i, j)

#for i, j in b:
	#d = str(i)
	#e = str(j)
	#print "x:{}, y:{}".format(d, e)
	
#for  in b:
	#assignment
f = [(10, 20, 40), (10,40), (4, 5, 50)]
'''
x:10, y:20, z:40
x:10, y:40
'''

	
for i in f:
	if len(i) == 3:
		print "x : {}, y : {}, z : {}".format(*i)

	else:
		print "x : {}, y : {}".format(*i)
		
