# your code goes here
def mycoolhash(data,length=32,itr=128,salt=0x1234567890ABCDEF):
result = 0xBA5E0FDA7AB17C01
data = str(data)
for i in range(itr):
for char in data: result = int(str(result)[::-1])^(ord(char)|(ord(char)<<16))
result = (int(str(result*salt)[::-1])<<i)%int(length*'F',16)
return result
a = mycoolhash("@U.",itr=32)
b = mycoolhash("BU,",itr=32)
print(hex(a),hex(b),a==b)
IyB5b3VyIGNvZGUgZ29lcyBoZXJlCmRlZiBteWNvb2xoYXNoKGRhdGEsbGVuZ3RoPTMyLGl0cj0xMjgsc2FsdD0weDEyMzQ1Njc4OTBBQkNERUYpOgogICAgcmVzdWx0ID0gMHhCQTVFMEZEQTdBQjE3QzAxCiAgICBkYXRhID0gc3RyKGRhdGEpCiAgICBmb3IgaSBpbiByYW5nZShpdHIpOgogICAgICAgIGZvciBjaGFyIGluIGRhdGE6IHJlc3VsdCA9IGludChzdHIocmVzdWx0KVs6Oi0xXSleKG9yZChjaGFyKXwob3JkKGNoYXIpPDwxNikpCiAgICAgICAgcmVzdWx0ID0gKGludChzdHIocmVzdWx0KnNhbHQpWzo6LTFdKTw8aSklaW50KGxlbmd0aConRicsMTYpCiAgICByZXR1cm4gcmVzdWx0CmEgPSBteWNvb2xoYXNoKCJAVS4iLGl0cj0zMikKYiA9IG15Y29vbGhhc2goIkJVLCIsaXRyPTMyKQpwcmludChoZXgoYSksaGV4KGIpLGE9PWIp