int main()
{
	char str[40];;
	char *p=str;
	cin.getline (str,40);
   for  (;*p!='\0';p++)
   {
	   if (*p-'0'<=9&&*p-'0'>=0)
	   {cout<<*p;//???1-9?????????
	     if (*(p+1)-'0'>9||*(p+1)-'0'<0)
			 cout<<endl;//????????????????
	   }
   }
   return 0;
}
