import random
def view_result():
print('じゃんけんスタート')
hand_diff = int(input('自分の手を入力してください\n0:グー, 1:チョキ, 2:パー')) - random.randint(0, 2)
print('あいこ' if hand_diff == 0 else '勝ち' if hand_diff == -1 or hand_diff == 2 else '負け')
view_result()
aW1wb3J0IHJhbmRvbQoKZGVmIHZpZXdfcmVzdWx0KCk6CiAgICBwcmludCgn44GY44KD44KT44GR44KT44K544K/44O844OIJykKICAgIGhhbmRfZGlmZiA9IGludChpbnB1dCgn6Ieq5YiG44Gu5omL44KS5YWl5Yqb44GX44Gm44GP44Gg44GV44GEXG4wOuOCsOODvCwgMTrjg4Hjg6fjgq0sIDI644OR44O8JykpIC0gcmFuZG9tLnJhbmRpbnQoMCwgMikKICAgIHByaW50KCfjgYLjgYTjgZMnIGlmIGhhbmRfZGlmZiA9PSAwIGVsc2UgJ+WLneOBoScgaWYgaGFuZF9kaWZmID09IC0xIG9yIGhhbmRfZGlmZiA9PSAyIGVsc2UgJ+iyoOOBkScpCiAgICAKdmlld19yZXN1bHQoKQo=
じゃんけんスタート
自分の手を入力してください
0:グー, 1:チョキ, 2:パー
Traceback (most recent call last):
File "./prog.py", line 8, in <module>
File "./prog.py", line 5, in view_result
EOFError: EOF when reading a line