#include<bits/stdc++.h>
using namespace std;
int main(){
int x,s,g,h,q,w,e,r;
cin>>x;
g=x%10;
h=x/10%10;
q=x/100%10;
w=x/1000%10;
e=x/10000%10;
r=x/100000;
cout<<r<<endl;
cout<<e<<endl;
cout<<w<<endl;
cout<<q<<endl;
cout<<h<<endl;
cout<<g;
}
/**************************************************************
Problem: 1611
User: huanghengyi
Language: C++
Result: Accepted
Time:8 ms
Memory:2072 kb
****************************************************************/