d=6
i=input("press r to roll\n press z to quit")
	if(i=="r"):
		print ("you got" ,d)
	if(i=="z"):
		print ("end")
		d=2
i=input("press r to roll\n press z to quit")
	if(i=="r"):
		print ("you got" ,d)
	if(i=="z"):
		print ("end")
		d=3
i=input("press r to roll\n press z to quit")
	if(i=="r"):
		print ("you got" ,d)
	if(i=="z"):
		print ("end")
		d=6	
i=input("press r to roll\n press z to quit")
	if(i=="r"):
		print ("you got" ,d)
	if(i=="z"):
		print ("end")
		d=2		
i=input("press r to roll\n press z to quit")
	if(i=="r"):
		print ("you got" ,d)
	if(i=="z"):
		print ("end")
		d=3
i=input("press r to roll\n press z to quit")
	if(i=="r"):
		print ("you got" ,d)
	if(i=="z"):
		print ("end")
		d=6
i=input("press r to roll\n press z to quit")
	if(i=="r"):
		print ("you got" ,d)
	if(i=="z"):
		print ("end")
		d=2
i=input("press r to roll\n press z to quit")
	if(i=="r"):
		print ("you got" ,d)
	if(i=="z"):
		print ("end")
		d=3
print("you won")