//韩信点兵
#include<stdio.h>
void main()
{
freopen("input.txt", "r", stdin );
freopen("output.txt", "w", stdout);
int N,x,y,z;
scanf("%d%d%d", &x, &y, &z);
printf("%d %d %d",x, y, z);
for(N = 10; N < 100; N++)
if(N % 3 == x && N % 5 == y && N % 7 == z)
{
printf("%d", N);
break;
}
if(N >= 100)
printf("no answer");
}