from numpy import*
n= array(eval(input("entrada:")))
j= 0
for x in n:
	if(j<5):
		j = j + 1
print(j)

k = zeros(j, dtype=int)
x = 0
l = 0
for u in range(size(n)):
	if(i<=5):
		t[k] = n[l]
		x = x + 1
		l = l + 1
		
print(t)