#!/usr/bin/python

# Big endian code block assigned as string. Credits to @Nanquitas.
print("Enter the codes:")

lines = []
while True:
    line = raw_input()
    if line:
        lines.append(line)
    else:
        break
code = '\n'.join(lines)


# Strip out the spaces and new lines
code = code.replace(" ","").replace("\n","");

# Initiaing loop variables
big_start = 0;
big_end = 8;

output ="";

# Loop through the string 8 characters at a time and convert to little endian
for i in range(0,(len(code) / 8)):
	
	bytes = code[big_start:big_end:1];
	decoded_bytes = bytes.decode('hex');
	swap = decoded_bytes[::-1];
	encoded_swap = swap.encode('hex').upper();	
	big_start += 8;
	big_end += 8;
	
	# Initializes and resets formatting loop
	little_start = 0;
	little_end = 2;

	# Loops through little endian bytes and formats them '0x00, '
	for i in range(0,4):
		output += "0x{}, ".format(encoded_swap[little_start:little_end:1]);
		little_start += 2;
		little_end += 2;

# Print result minus last comma
print("\n\n");
print(output[:-2]);
print("\n\n");