from pwn import *
x = input('Enter ticket: ')
ticket = x.encode()
p = remote("simple-service-c45xrrmhuc5su.shellweplayaga.me", 31337)
print(p.recv())
p.sendline(ticket)
eq = p.recv().decode()
eq= eq.split('=')[0]
ans = eval(eq)
p.sendline(str(ans).encode())
print(p.recv().decode())