#include <bits/stdc++.h>   using namespace std;   int N, K;   char c[10];   int vl(int x, int y) {     printf( 1 %d %d n , x, y), fflush(stdout);     return scanf( %s , c), c[0] ==  T ;   }   int ef(int L, int R) {     for (; L < R;)       vl((L + R >> 1), (L + R >> 1) + 1) ? R = (L + R >> 1)                                          : L = (L + R >> 1) + 1;     return L;   }   int main() {     scanf( %d%d , &N, &K);     int Ans1 = ef(1, N), Ans2 = ef(1, Ans1 - 1);     if (Ans1 == Ans2 || !vl(Ans2, Ans1)) Ans2 = ef(Ans1 + 1, N);     printf( 2 %d %d n , Ans1, Ans2);     return 0;   }   