#include using namespace std ; int T, A, B, C ; int main() { cin >> T ; while(T) { cin >> A >> B >> C ; if(A == 13) cout <<3 ; else if(A == 11) cout <<1 ; --T ; } return 0; }