#!/usr/bin/env python

flag = ""

with open('file.txt', 'r') as f:
	while True:
		line = f.readline()
		if not line:
			break
		for c in line.split():
			c = "0x" + c
			flag += str(chr(int(c, 16)))
			#print c
			#print flag


print flag

print "-"*15 + "  base64 -d  " + "-"*15

length = len(flag.split())

uri_e_host = flag.split()[length-1].decode('base64')

uri = uri_e_host.split()[0][4:]
print "URI=" + uri
#c08a8ea7ba8ea68ebdc08c80818b808a9cc0828e81869f9a838e9d8a82809cc08b8a9c9f8a9d9c80818e8386958a82c1879b8283
host = uri_e_host.split()[2][5:]
print "HOST=" + host
#88899f8d8a85838f958e899ec28e8995898080839bc28f8381c28e9e

address = host + uri
n = 2


for constante in range(128):
	adr = ""
	for c in [address[i:i+n] for i in range(0, len(address), n)]:
		c = "0x" + c
		res = int(c,16) - constante
		if (res>0): 
			adr += str(chr(res))
	#print adr

a = 0x88899f8d8a85838f958e899ec28e8995898080839bc28f8381c28e9ec08a8ea7ba8ea68ebdc08c80818b808a9cc0828e81869f9a838e9d8a82809cc08b8a9c9f8a9d9c80818e8386958a82c1879b8283
b = 0x005056789b080050565852a30800450001941a544000400612dfc9a74d3e

print str(int(a-b, 16))