import random

kachi = 0
make = 0

while kachi < 3 and make < 3:

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

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

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

  if kekka == "勝ち":
    kachi += 1
  elif kekka == "負け":
    make += 1
  print(str(kachi) + "勝 " + str(make) + "敗")

if kachi == 3:
  print("あなたの勝ち")
else:
  print("あなたの負け")