p34
韩信点兵
#define LOCAL
#include<stdio.h>
int main()
{
#ifdef LOCAL
freopen("datain.txt","r",stdin);
freopen("dataout.txt","w",stdout);
#endif
int a,b,c,n;
while( scanf("%d %d %d",&a,&b,&c)==3)
{int i;
for( i=10;i<=100;i++)
if(i%3==a&&i%5==b&&i%7==c)
{printf("%d\n",i);break; }
if(i>100)
printf("no\n");
}
}