import socket
import threading

HOST, PORT = input().split(":")

client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)

client.connect((HOST, int(PORT)))

while True:
    msg = input()
    client.send(bytes(msg, 'utf-8'))
    if (msg == 'bye'):
        break;
    print(client.recv(1024).decode('utf-8'))

client.close()

f1c8f1c61484f1fd42bc7c930ea31b38704d2f2e
<mask token>

<mask token>
client.connect((HOST, int(PORT)))
while True:
    msg = input()
    client.send(bytes(msg, 'utf-8'))
    if msg == 'bye':
        break
    print(client.recv(1024).decode('utf-8'))
client.close()

<mask token>
HOST, PORT = input().split(':')
client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
client.connect((HOST, int(PORT)))
while True:
    msg = input()
    client.send(bytes(msg, 'utf-8'))
    if msg == 'bye':
        break
    print(client.recv(1024).decode('utf-8'))
client.close()

import socket
import threading
HOST, PORT = input().split(':')
client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
client.connect((HOST, int(PORT)))
while True:
    msg = input()
    client.send(bytes(msg, 'utf-8'))
    if msg == 'bye':
        break
    print(client.recv(1024).decode('utf-8'))
client.close()

import socket
import threading

HOST, PORT = input().split(":")

client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)

client.connect((HOST, int(PORT)))

while True:
    msg = input()
    client.send(bytes(msg, 'utf-8'))
    if (msg == 'bye'):
        break;
    print(client.recv(1024).decode('utf-8'))

client.close()
