#!/usr/bin/env python3

import random
import sys

w, h = [int(x) for x in input().split()]
order = list(range(1, w + 1))
random.shuffle(order)
height = 0
loc = 1
for x in order:
    print("? {} {}".format(x, height + 1), flush=True)
    response = input()

    if response == "building":
        # new highest building
        print("? {} {}".format(x, h), flush=True)
        response = input()
        LB = height + 1
        UB = h + 1
        while LB + 1 < UB:
            mid = LB + (UB - LB) // 2
            print("? {} {}".format(x, mid), flush=True)
            response = input()
            if response == "building":
                LB = mid
            else:
                UB = mid
        height = LB
        loc = x
    if height == h:
        break
print("! {} {}".format(loc, height), flush=True)
