import java.util.*; public class Java_100_nock { public static void main(String[] args) { int N = 0; Scanner sc = new Scanner(System.in); String line; line = sc.nextLine(); String s[]; int flg = 0; if(line.matches("^[0-9]$"))N = Integer.parseInt(line); if(1<=N&&N<=Math.pow(10,5)){ int data[][] = new int[N][3]; for(int i=0;i