{"raw_statement":[{"iden":"problem statement","content":"There are $N$ boxes. The $i$\\-th box has a shape of a rectangular cuboid whose height, width, and depth are $h_i,w_i$, and $d_i$, respectively.\nDetermine if there are two boxes such that one's height, width, and depth are strictly greater than those of the other after rotating them if necessary."},{"iden":"constraints","content":"*   $2 \\leq N \\leq 2 \\times 10^5$\n*   $1 \\leq h_i,w_i,d_i \\leq 10^9$\n*   All input values are integers."},{"iden":"input","content":"The input is given from Standard Input in the following format:\n\n$N$\n$h_1$ $w_1$ $d_1$\n$\\vdots$\n$h_N$ $w_N$ $d_N$"},{"iden":"sample input 1","content":"3\n19 8 22\n10 24 12\n15 25 11"},{"iden":"sample output 1","content":"Yes\n\nIf you rotate the $2$\\-nd box to swap its height and depth, the $3$\\-rd box will have greater height, depth, and width."},{"iden":"sample input 2","content":"3\n19 8 22\n10 25 12\n15 24 11"},{"iden":"sample output 2","content":"No"},{"iden":"sample input 3","content":"2\n1 1 2\n1 2 2"},{"iden":"sample output 3","content":"No"}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}