#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
int l = n / 100000;
int w = (n / 10000) % 10;
int q = (n / 1000) % 10;
int b = (n / 100) % 10;
int s = (n / 10) % 10;
int g = n % 10;
printf("%d\n%d\n%d\n%d\n%d\n%d", l, w, q, b, s, g);
return 0;
}
/**************************************************************
Problem: 1611
User: xuezihong1
Language: C++
Result: Accepted
Time:8 ms
Memory:2072 kb
****************************************************************/