# -*- coding: utf-8 -*-
"""
Spyder Editor

This is a temporary script file.
"""

a = []
for i in range(6):
    a.append(int(input()))


len = len(a);
#priting length
print("The length is ",len)
#printing lists
a.reverse()
print(a)
