import java.util.*; public class Java_100_nock { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String line; int N; line = sc.nextLine(); N = Integer.parseInt(line); int flg = 0; String s[]; if((1<=N&&N<=200000)!=true)flg=1; if(flg!=1){ int data[][] = new int[N][3]; line = null; for(int i=0;i