import random

print("じゃんけんぽん")
kekka = "あいこ"

while kekka == "あいこ":
  jibun_te = input("自分の手を「グー」「チョキ」「パー」で入力してください==>")
  pasokon_te = ["グー", "チョキ", "パー"][random.randint(0, 2)]

  if jibun_te == "グー" and pasokon_te == "チョキ":
    print("(*^^)v")
    kekka = "勝ち"
  elif jibun_te == "チョキ" and pasokon_te == "パー":
    print("(*^^)v")
    kekka = "勝ち"
  elif jibun_te == "パー" and pasokon_te == "グー":
    print("(*^^)v")
    kekka = "勝ち"
  elif jibun_te == "グー" and pasokon_te == "パー":
    print("(>_<)")
    kekka = "負け"
  elif jibun_te == "チョキ" and pasokon_te == "グー":
    print("(>_<)")
    kekka = "負け"
  elif jibun_te == "パー" and pasokon_te == "チョキ":
    print("(>_<)")
    kekka = "負け"
  else:
    print("あいこでしょ")
    kekka = "あいこ"