#include <stdio.h> int main(){ int n,y,m,d,ans,i; while(scanf("%d",&n)!=EOF){ for(i=0;i<n;i++){ scanf("%d %d %d",&...