A, B, C = map(int, input().split())
found_solution = False
for i in range(100, 1000):
two = B // A * i
three = C // A * i
if two < 1000 and three < 1000 and set(str(i) + str(two) + str(three)) == {'1', '2', '3', '4', '5', '6', '7', '8', '9'}:
print(i, two, three)
found_solution = True
if not found_solution:
print('No!!!')