# Try multiple time to run this file, it may get hand 
import socket
import struct

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
HOST = "127.0.0.1"
PORT = 2998

s.connect((HOST,PORT))

n = s.recv(4)

print n
print n.encode('hex')

data = struct.unpack("I",n)[0]

s.send(str(data))
n = s.recv(1000)

print n
