using System; using System.Collections.Generic; using System.Collections; using System.Collections.Specialized; using System.Linq; using System.Text; using System.IO; using System.Reflection; using static System.Math; using System.Numerics; static class Program{ const int mod=(int)1e9+7; const double eps=1e-11; static List[] li,lir,lid; static bool[] b; static int k=0,m=0; static int[] h,zt; static string ans="No"; static void Main(){ Sc sc=new Sc(); int[] s=sc.Ia; li=new List[s[0]+1]; lir=new List[s[0]+1]; b=new bool[s[0]+1]; k=s[0]-1; for(int i=1;i<=s[0];i++){li[i]=new List();lir[i]=new List();} for(int i=0;i[m+1]; for(int i=1;i<=m;i++){lid[i]=new List();} for(int i=1;i<=s[0];i++){ for(int j=0;j(int n,Func f){var a=new T[n];for(int i=0;i(int n,Func f){var a=new T[n];for(int i=0;i(int n,Func f){var a=new T[n];for(int i=0;i(int n,Func f){var a=new T[n];for(int i=0;i