#include<stdio.h>
int main()
{
long int m=0;
char s[1024]="";
printf ("pelase input a strings for s\ns = ");
scanf ("%s",s) ;
int n=1;
int i,j;
for(i=0;s[i];i++)
{
if(s[i]>='0'
&&s[i]<='9'){
m = m*10 + s[i]-'0';
#ifdef DEBUG
printf ("m = %d\n",m) ;
getchar () ;
#endif
}
}
printf("m = %d\n",m);
return 0;
}