#!/usr/bin/env python3

import random

W, H = map(int, input().split())
wp = list(range(1, W + 1))
# NOTE: WRONG ANSWER IS HERE
# random.shuffle(wp)
wp.reverse()


def is_building(i, y):
    print(f"? {wp[i]} {y}", flush=True)
    return input() == "building"


h = 0
hi = 0
for i in range(W):
    if not is_building(i, h + 1):
        continue
    hi = i
    h += 1
    # Binary search from h to H
    low = h
    high = H + 1
    while low < high:
        m = (low + high) // 2
        if is_building(i, m):
            h = m
            low = m + 1
        else:
            high = m
    if h == H:
        break

print(f"! {wp[hi]} {h}", flush=True)
