题目链接:http://acm.henu.edu.cn/contest/problem?id=2&pid=7
#include <stdio.h>
#include <string.h>
char str[1005];
long long sum=0;
int main(){
gets(str);
for(int i=0;i<strlen(str);++i){
if(str[i]>='0'&&str[i]<='9'){
sum = sum*10 + str[i] - '0';
}
}
printf("%lld %s\n",sum, (sum>=520 && sum%520==0)?"yes":"no" );
return 0;
}