while True:
    x=input()
    if x!=' ':    
        lst=list(x.split(' '))
        a,b,c=int(lst[0]),int(lst[1]),int(lst[2])
        pb=[]
        for tt in range(10,101):
            if (tt-a)%3==0:
                if (tt-b)%5==0:
                    if (tt-c)%7==0:
                        pb.append(tt)
        if pb != []:
            print(min(pb))
        else:
            print('No answer')
    else:
        break

 

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。