while True:
    a=input('1.摄氏度2.华氏度')
    if a =='1':
        c =input('请输入摄氏度')
        f =float(c)*9/5+32
        print('华氏度为{}'.format(f))
    elif a=='2':
        f = float(input('请输入华氏度'))
        c = 5/9*(f-32)
        print('华氏度为{}'.format(c))

    else:
        break