a,b,c=map(int,input().split()) s=None for i in range(33,334): str1=f'{i*a}{i*b}{i*c}' lst=[] for j in str1: lst.append(int(j)) lst.sort() if lst==[x for x in range(1,10)]: print(f'{a*i} {b*i} {c*i}') s=True if s: pass else: print('No!!!')