<gh_stars>10-100
from pwn import *
cn = remote('172.16.17.32', 9999) # nc 172.16.17.32 9999
cn.recv() # title
while True:
    print cn.recvline() # stage info
    prob = cn.recvline()
    cn.recv()
    log.info(prob)
    prob = prob.replace('Question> ', '').replace('= ?', '')
    log.info('PROBLEM : ' + prob)
    ans = str(eval(prob))
    log.info('ANSWER : ' + str(ans))
    cn.sendline(ans)
    log.info(cn.recv())
    print '\n'

from pwn import *
cn = remote('172.16.17.32', 9999) # nc 172.16.17.32 9999
cn.recv() # title
while True:
    print cn.recvline() # stage info
    prob = cn.recvline()
    cn.recv()
    log.info(prob)
    prob = prob.replace('Question> ', '').replace('= ?', '')
    log.info('PROBLEM : ' + prob)
    ans = str(eval(prob))
    log.info('ANSWER : ' + str(ans))
    cn.sendline(ans)
    log.info(cn.recv())
    print '\n'
# nc 172.16.17.32 9999 # title # stage info