# date:2022//03//25
import random
playerinput = input("请输入(0剪刀、1石头、2布:)")
player = int(playerinput)
computer = random.randint(0,2)
if(player == 0 and computer == 2)or(player == 1 and computer == 0)or(player == 2 and computer ==1):
print("电脑出的拳头是%s,恭喜,你赢了!"%computer)
elif(player == 0 and computer == 0)or(player == 1 and computer ==1)or(player == 2 and computer == 1):
print("电脑出的拳头是%s,打成平局了!"%computer)
else:
print("电脑出的拳头是%s你输了,再接再厉!"%computer)