print "\t\t\tRules of game:"
print "\t\t1. There are 21 match sticks."
print "\t\t2.You can select maximum 4 sticks at a time."
print "\t\t3.The turns are in alternate with the computer"
print "\t\t4.The one to chose the last stick loses the game."


name=raw_input("Enter your name: ")
sum=0
while sum<21:
	a=int(raw_input("How many match sticks are you chosing?? "))
	b=5-a
	print "Computer chose"+str(b)+" match sticks"
	sum=a+b+sum
if sum==21:
	print name+" Loose"

