#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b,c,d,e,f,n;
cin>>n;
a=n/100000;
b=n%100000/10000;
c=n%10000%10000/1000;
d=n%10000%10000%1000/100;
e=n%10000%10000%1000%100/10;
f=n%10000%10000%1000%100%10;
cout<<a<<endl;
cout<<b<<endl;
cout<<c<<endl;
cout<<d<<endl;
cout<<e<<endl;
cout<<f<<endl;
return 0;
}
/**************************************************************
Problem: 1611
User: zhangchenyu
Language: C++
Result: Accepted
Time:8 ms
Memory:2072 kb
****************************************************************/