n = int(input())
sw = n // 100000 % 10
w = n // 10000 % 10
q = n // 1000 % 10
b = n // 100 % 10
s = n // 10 % 10
g = n // 1 % 10
print(sw)
print(w)
print(q)
print(b)
print(s)
print(g)

/**************************************************************
	Problem: 1611
	User: admin
	Language: Python
	Result: Accepted
	Time:103 ms
	Memory:34480 kb
****************************************************************/