import random
from time import ctime

def game():
	# BLow job & gather shit
	print '\nTHIS IS A EPIC LEGENDARY BATTLE BETWEEN HUMANS AND ORCS ^-^\n'
	hCollect = raw_input("Input the number of humans: ")
	oCollect = raw_input("Input the number of orcs: ")
	hNum = int(hCollect)
	oNum = int(oCollect)
	print ''
# how strong is your dick? 
	hATK = random.randint(0,40)
	oATK = random.randint(0,50)
# your true face
	while hNum != 0 and oNum != 0:
		combatEnd = False	
		hHP = 155
		oHP = 80
		while combatEnd == False:
			hATKp = hATK
			oATKp = oATK
			if hATKp > oATKp:
				HP_lost = hATKp - oATKp
				oHP -= HP_lost
			if oATKp > hATKp:
				HP_lost = oATKp - hATKp
				hHP -= HP_lost
			if hHP <= 0:
				hNum -= 1
				combatEnd = True
			if oHP <= 0:
				oNum -= 1
				combatEnd = True
	# Well, let's play!
	print "Battle begin!!"
	if hNum != 0:
		print "Human wins!"
		print "%d humans remained" % hNum
	if oNum != 0:
		print "Orcs win!"
		print "%d orcss remained" % oNum	


game()

