#include int main(void){ int T, n; scanf("%d\n", &T); for(; T; T--){ scanf("%*s%*s%d%*s\n", &n); printf("Hitsuji ga %d hiki\n", n+1); } return 0; }