import socket

s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP)
host = socket.gethostname()
port = 9999

s.connect((host, port))

msg = input()

s.sendto(msg.encode("utf-8"), (host, port))

try:
    msg, addrs = s.recvfrom(1024)
    print(msg.decode("utf-8"))

except:
    print("MSg not received")


s.close()

a5105839ac43b68a8a16c303651f34a603557a0e
<mask token>

<mask token>
s.connect((host, port))
<mask token>
s.sendto(msg.encode('utf-8'), (host, port))
try:
    msg, addrs = s.recvfrom(1024)
    print(msg.decode('utf-8'))
except:
    print('MSg not received')
s.close()

<mask token>
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP)
host = socket.gethostname()
port = 9999
s.connect((host, port))
msg = input()
s.sendto(msg.encode('utf-8'), (host, port))
try:
    msg, addrs = s.recvfrom(1024)
    print(msg.decode('utf-8'))
except:
    print('MSg not received')
s.close()

import socket
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP)
host = socket.gethostname()
port = 9999
s.connect((host, port))
msg = input()
s.sendto(msg.encode('utf-8'), (host, port))
try:
    msg, addrs = s.recvfrom(1024)
    print(msg.decode('utf-8'))
except:
    print('MSg not received')
s.close()

import socket

s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP)
host = socket.gethostname()
port = 9999

s.connect((host, port))

msg = input()

s.sendto(msg.encode("utf-8"), (host, port))

try:
    msg, addrs = s.recvfrom(1024)
    print(msg.decode("utf-8"))

except:
    print("MSg not received")


s.close()
