from socket import *

clientSock = socket(AF_INET, SOCK_STREAM)
#clientSock.connect(('34.64.92.185', 5500))
clientSock.connect(('127.0.0.1', 5500))

print('연결 성공')

while True:
    inp = input()
    if inp == 'q':
        break

    clientSock.send(inp.encode())
    res = clientSock.recv(1024).decode()
    print(res)