#include using namespace std; int main(){ int min_x,min_y; int N; int dist,min_dist=998244353; cin >> N; for(int i=1;i<=N;i++){ cout << "1 " << i << " 0" << endl; cin >> dist; if(dist < min_dist){ min_dist = dist; min_x = i; } } min_dist = 998244353; for(int i=1;i<=N;i++){ cout << "1 0 " << i << endl; cin >> dist; if(dist < min_dist){ min_dist = dist; min_y = i; } } cout << "2 " << min_x << " " << min_y << endl; }