#include <stdio.h>
#define ARR_SIZE 100
int main(void)
{
char ch;
int arr[ARR_SIZE] = {0};
int i = 0;
while ( ( ch = getchar()) != EOF && ch != '\n' && i < ARR_SIZE )
{
if (ch >= '0' && ch <= '9')
arr[i++] = ch - '0';
}
for (int j = 0; j < i; j++)
printf("%d\n", arr[j]);
return 0;
}
/*
run:
1234567890
1
2
3
4
5
6
7
8
9
0
*/