from random import randint
print("Nhap Bao, Bua, Keo")
player = input()
computer = randint(0,2)
if computer == 0:
computer = "Dam"
if computer == 1:
computer = "La"
if computer == 2:
computer = "Keo"
print("-----")
print("Ban chon: " + player)
print("May chon: " + computer)
print("-----")
if computer == player:
print("Hoa")
else:
if player == "Bao":
if computer == "Bua":
print("Thang")
else:
print("Thua")
elif player == "Bua":
if computer == "Keo":
print("Thang")
else:
print("Thua")
elif player == "Keo":
if computer == "Bao":
print("Thang")
else:
print("Thua")
else:
print("Nhap sai!")