#! /usr/bin/python2
import sys

input = sys.argv[1]

print("String length: " + str(len(input)))

string_list = [input[i:i+4] for i in range(0, len(input), 4)]

for item in string_list[::-1]:
    print (item[::-1] + " : " + str(item[::-1].encode("hex")))