
numbers = [11, 32, 33, 15, 1]

while True:
    answer = input("Guess a number or type q to quit.")
    if answer == "q":
        break
    try:
        answer = int(answer)
    except ValueError:
        print("数字を入力するか、qで終了します")
    if answer in numbers:
        print("正解!")
    else:
        print("不正解!")
