#include <bits/stdc++.h>

using namespace std;

/**
pair<int, double>
tuple<int, double, int>
tuple<int, int, string, int>
*/

typedef tuple<int,int,int> T;

T f( int x ) {
  return T(x, x + 1, x + 2);
}
 
int main() {
  T t(1, 2, 3);
  /**
  int i = 1;
  get<i>(t); <---- error
  */
  cout << get<0>(t) << endl;
  cout << get<2>(f(7)) << endl;
  cout << (T(1, 2, 3) < T{1, 2, 2}) << endl;
  cout << (T{1, 2, 3} < T{1, 2, 4}) << endl;
}