#include using namespace std ; int T, a, b, c; int main() {cin >> T ; while(T) { cin>> a >> b >> c; cout << a ; --T ; } return 0; }