#include
int main() {
char s[10];
int i,num;
while(scanf("%s",s) == 1) {
num = 0;
for(i = 0; i < 9 && s[i]; ++i) {
if(s[i] >= '0' && s[i] <= '9')
num = 10 * num + s[i] - '0';
}
printf("%d\n",num);
}
printf("\n");
return 0;
}
#include
int main(void)
{
unsigned long n=0;
char c;
while((c=getchar())!='\n')
{
n=n*10+c-'0';
}
printf("%lu\n",n);
return 0;
}