

import java.util.*;
import java.io.*;
import java.math.*;

public class Main 

{ 
static int mod=1000000007;

	 static FastReader sc=new FastReader(); 
	 
		  public static void main(String[] args) 
    {
			  int n=i();
			  int max=0;
			  int c=0;
			  for(int i=0;i<n;i++) {
				  int a=i();
				  int b=i();
				  if(a==b) {
					  c++;
				  }
				  else {
					  if(c>max)
						  max=c;
					  c=0;
				  }
			  }
			  if(c>max)
				  max=c;
			  if(max>=3)
				  System.out.println("Yes");
			  else
				  System.out.println("No");
			  
			  
			  
    }

		  
		  
		  
static int[] input(int n) {
	int A[]=new int[n];
	   for(int i=0;i<n;i++) {
		   A[i]=sc.nextInt();
	   }
	   return A;
   }
static long[] inputL(int n) {
	long A[]=new long[n];
	   for(int i=0;i<n;i++) {
		   A[i]=sc.nextLong();
	   }
	   return A;
   }
static String[] inputS(int n) {
	String A[]=new String[n];
	   for(int i=0;i<n;i++) {
		   A[i]=sc.next();
	   }
	   return A;
   }


static void input(int A[],int B[]) {
	   for(int i=0;i<A.length;i++) {
		   A[i]=sc.nextInt();
		   B[i]=sc.nextInt();
	   }
}
static long mod(long x) {
	  return ((x%mod + mod)%mod);
}

     static int i() {
    	 return sc.nextInt();
     }
     static String s() {
    	 return sc.next();
     }
     static long l() {
    	 return sc.nextLong();
     }  
     static void sort(int[] arr){
        int n = arr.length;
        Random rnd = new Random();
        for(int i=0; i<n; ++i){
            int tmp = arr[i];
            int randomPos = i + rnd.nextInt(n-i);
            arr[i] = arr[randomPos];
            arr[randomPos] = tmp;
        }
        Arrays.sort(arr);
     }
  
        
        
    static class FastReader 
    { 
        BufferedReader br; 
        StringTokenizer st; 
  
        public FastReader() 
        { 
            br = new BufferedReader(new
                     InputStreamReader(System.in)); 
        } 
  
        String next() 
        { 
            while (st == null || !st.hasMoreElements()) 
            { 
                try
                { 
                    st = new StringTokenizer(br.readLine()); 
                } 
                catch (IOException  e) 
                { 
                    e.printStackTrace(); 
                } 
            } 
            return st.nextToken(); 
        } 
  
        int nextInt() 
        { 
            return Integer.parseInt(next()); 
        } 
  
        long nextLong() 
        { 
            return Long.parseLong(next()); 
        } 
  
        double nextDouble() 
        { 
            return Double.parseDouble(next()); 
        } 
  
        String nextLine() 
        { 
            String str = ""; 
            try
            { 
                str = br.readLine(); 
            } 
            catch (IOException e) 
            { 
                e.printStackTrace(); 
            } 
            return str; 
        } 
    } 
} 


 import java.util.*; util.* java import java.io.*; io.* java import java.math.*; math.* java public class Main 

{ 
static int mod=1000000007;

	 static FastReader sc=new FastReader(); 
	 
		  public static void main(String[] args) 
    {
			  int n=i();
			  int max=0;
			  int c=0;
			  for(int i=0;i<n;i++) {
				  int a=i();
				  int b=i();
				  if(a==b) {
					  c++;
				  }
				  else {
					  if(c>max)
						  max=c;
					  c=0;
				  }
			  }
			  if(c>max)
				  max=c;
			  if(max>=3)
				  System.out.println("Yes");
			  else
				  System.out.println("No");
			  
			  
			  
    }

		  
		  
		  
static int[] input(int n) {
	int A[]=new int[n];
	   for(int i=0;i<n;i++) {
		   A[i]=sc.nextInt();
	   }
	   return A;
   }
static long[] inputL(int n) {
	long A[]=new long[n];
	   for(int i=0;i<n;i++) {
		   A[i]=sc.nextLong();
	   }
	   return A;
   }
static String[] inputS(int n) {
	String A[]=new String[n];
	   for(int i=0;i<n;i++) {
		   A[i]=sc.next();
	   }
	   return A;
   }


static void input(int A[],int B[]) {
	   for(int i=0;i<A.length;i++) {
		   A[i]=sc.nextInt();
		   B[i]=sc.nextInt();
	   }
}
static long mod(long x) {
	  return ((x%mod + mod)%mod);
}

     static int i() {
    	 return sc.nextInt();
     }
     static String s() {
    	 return sc.next();
     }
     static long l() {
    	 return sc.nextLong();
     }  
     static void sort(int[] arr){
        int n = arr.length;
        Random rnd = new Random();
        for(int i=0; i<n; ++i){
            int tmp = arr[i];
            int randomPos = i + rnd.nextInt(n-i);
            arr[i] = arr[randomPos];
            arr[randomPos] = tmp;
        }
        Arrays.sort(arr);
     }
  
        
        
    static class FastReader 
    { 
        BufferedReader br; 
        StringTokenizer st; 
  
        public FastReader() 
        { 
            br = new BufferedReader(new
                     InputStreamReader(System.in)); 
        } 
  
        String next() 
        { 
            while (st == null || !st.hasMoreElements()) 
            { 
                try
                { 
                    st = new StringTokenizer(br.readLine()); 
                } 
                catch (IOException  e) 
                { 
                    e.printStackTrace(); 
                } 
            } 
            return st.nextToken(); 
        } 
  
        int nextInt() 
        { 
            return Integer.parseInt(next()); 
        } 
  
        long nextLong() 
        { 
            return Long.parseLong(next()); 
        } 
  
        double nextDouble() 
        { 
            return Double.parseDouble(next()); 
        } 
  
        String nextLine() 
        { 
            String str = ""; 
            try
            { 
                str = br.readLine(); 
            } 
            catch (IOException e) 
            { 
                e.printStackTrace(); 
            } 
            return str; 
        } 
    } 
} Main static int mod=1000000007; mod 1000000007 static FastReader sc=new FastReader(); sc new FastReader() public static void main(String[] args) 
    {
			  int n=i();
			  int max=0;
			  int c=0;
			  for(int i=0;i<n;i++) {
				  int a=i();
				  int b=i();
				  if(a==b) {
					  c++;
				  }
				  else {
					  if(c>max)
						  max=c;
					  c=0;
				  }
			  }
			  if(c>max)
				  max=c;
			  if(max>=3)
				  System.out.println("Yes");
			  else
				  System.out.println("No");
			  
			  
			  
    } main {
			  int n=i();
			  int max=0;
			  int c=0;
			  for(int i=0;i<n;i++) {
				  int a=i();
				  int b=i();
				  if(a==b) {
					  c++;
				  }
				  else {
					  if(c>max)
						  max=c;
					  c=0;
				  }
			  }
			  if(c>max)
				  max=c;
			  if(max>=3)
				  System.out.println("Yes");
			  else
				  System.out.println("No");
			  
			  
			  
    } int n=i(); n i() i int max=0; max 0 int c=0; c 0 for(int i=0;i<n;i++) {
				  int a=i();
				  int b=i();
				  if(a==b) {
					  c++;
				  }
				  else {
					  if(c>max)
						  max=c;
					  c=0;
				  }
			  } int i=0; int i=0; i 0 i<n i n i++ i++ i {
				  int a=i();
				  int b=i();
				  if(a==b) {
					  c++;
				  }
				  else {
					  if(c>max)
						  max=c;
					  c=0;
				  }
			  } {
				  int a=i();
				  int b=i();
				  if(a==b) {
					  c++;
				  }
				  else {
					  if(c>max)
						  max=c;
					  c=0;
				  }
			  } int a=i(); a i() i int b=i(); b i() i if(a==b) {
					  c++;
				  }
				  else {
					  if(c>max)
						  max=c;
					  c=0;
				  } a==b a b {
					  c++;
				  } c++ c {
					  if(c>max)
						  max=c;
					  c=0;
				  } if(c>max)
						  max=c; c>max c max max=c max c c=0 c 0 if(c>max)
				  max=c; c>max c max max=c max c if(max>=3)
				  System.out.println("Yes");
			  else
				  System.out.println("No"); max>=3 max 3 System.out.println("Yes") System.out.println System.out System System.out "Yes" System.out.println("No") System.out.println System.out System System.out "No" String[] args args static int[] input(int n) {
	int A[]=new int[n];
	   for(int i=0;i<n;i++) {
		   A[i]=sc.nextInt();
	   }
	   return A;
   } input {
	int A[]=new int[n];
	   for(int i=0;i<n;i++) {
		   A[i]=sc.nextInt();
	   }
	   return A;
   } int A[]=new int[n]; A new int[n] n for(int i=0;i<n;i++) {
		   A[i]=sc.nextInt();
	   } int i=0; int i=0; i 0 i<n i n i++ i++ i {
		   A[i]=sc.nextInt();
	   } {
		   A[i]=sc.nextInt();
	   } A[i]=sc.nextInt() A[i] A i sc.nextInt() sc.nextInt sc return A; A int n n static long[] inputL(int n) {
	long A[]=new long[n];
	   for(int i=0;i<n;i++) {
		   A[i]=sc.nextLong();
	   }
	   return A;
   } inputL {
	long A[]=new long[n];
	   for(int i=0;i<n;i++) {
		   A[i]=sc.nextLong();
	   }
	   return A;
   } long A[]=new long[n]; A new long[n] n for(int i=0;i<n;i++) {
		   A[i]=sc.nextLong();
	   } int i=0; int i=0; i 0 i<n i n i++ i++ i {
		   A[i]=sc.nextLong();
	   } {
		   A[i]=sc.nextLong();
	   } A[i]=sc.nextLong() A[i] A i sc.nextLong() sc.nextLong sc return A; A int n n static String[] inputS(int n) {
	String A[]=new String[n];
	   for(int i=0;i<n;i++) {
		   A[i]=sc.next();
	   }
	   return A;
   } inputS {
	String A[]=new String[n];
	   for(int i=0;i<n;i++) {
		   A[i]=sc.next();
	   }
	   return A;
   } String A[]=new String[n]; A new String[n] n for(int i=0;i<n;i++) {
		   A[i]=sc.next();
	   } int i=0; int i=0; i 0 i<n i n i++ i++ i {
		   A[i]=sc.next();
	   } {
		   A[i]=sc.next();
	   } A[i]=sc.next() A[i] A i sc.next() sc.next sc return A; A int n n static void input(int A[],int B[]) {
	   for(int i=0;i<A.length;i++) {
		   A[i]=sc.nextInt();
		   B[i]=sc.nextInt();
	   }
} input {
	   for(int i=0;i<A.length;i++) {
		   A[i]=sc.nextInt();
		   B[i]=sc.nextInt();
	   }
} for(int i=0;i<A.length;i++) {
		   A[i]=sc.nextInt();
		   B[i]=sc.nextInt();
	   } int i=0; int i=0; i 0 i<A.length i A.length A A.length i++ i++ i {
		   A[i]=sc.nextInt();
		   B[i]=sc.nextInt();
	   } {
		   A[i]=sc.nextInt();
		   B[i]=sc.nextInt();
	   } A[i]=sc.nextInt() A[i] A i sc.nextInt() sc.nextInt sc B[i]=sc.nextInt() B[i] B i sc.nextInt() sc.nextInt sc int A[] A int B[] B static long mod(long x) {
	  return ((x%mod + mod)%mod);
} mod {
	  return ((x%mod + mod)%mod);
} return ((x%mod + mod)%mod); ((x%mod + mod)%mod) (x%mod + mod) x%mod x mod mod mod long x x static int i() {
    	 return sc.nextInt();
     } i {
    	 return sc.nextInt();
     } return sc.nextInt(); sc.nextInt() sc.nextInt sc static String s() {
    	 return sc.next();
     } s {
    	 return sc.next();
     } return sc.next(); sc.next() sc.next sc static long l() {
    	 return sc.nextLong();
     } l {
    	 return sc.nextLong();
     } return sc.nextLong(); sc.nextLong() sc.nextLong sc static void sort(int[] arr){
        int n = arr.length;
        Random rnd = new Random();
        for(int i=0; i<n; ++i){
            int tmp = arr[i];
            int randomPos = i + rnd.nextInt(n-i);
            arr[i] = arr[randomPos];
            arr[randomPos] = tmp;
        }
        Arrays.sort(arr);
     } sort {
        int n = arr.length;
        Random rnd = new Random();
        for(int i=0; i<n; ++i){
            int tmp = arr[i];
            int randomPos = i + rnd.nextInt(n-i);
            arr[i] = arr[randomPos];
            arr[randomPos] = tmp;
        }
        Arrays.sort(arr);
     } int n = arr.length; n arr.length arr arr.length Random rnd = new Random(); rnd new Random() for(int i=0; i<n; ++i){
            int tmp = arr[i];
            int randomPos = i + rnd.nextInt(n-i);
            arr[i] = arr[randomPos];
            arr[randomPos] = tmp;
        } int i=0; int i=0; i 0 i<n i n ++i ++i i {
            int tmp = arr[i];
            int randomPos = i + rnd.nextInt(n-i);
            arr[i] = arr[randomPos];
            arr[randomPos] = tmp;
        } {
            int tmp = arr[i];
            int randomPos = i + rnd.nextInt(n-i);
            arr[i] = arr[randomPos];
            arr[randomPos] = tmp;
        } int tmp = arr[i]; tmp arr[i] arr i int randomPos = i + rnd.nextInt(n-i); randomPos i + rnd.nextInt(n-i) i rnd.nextInt(n-i) rnd.nextInt rnd n-i n i arr[i] = arr[randomPos] arr[i] arr i arr[randomPos] arr randomPos arr[randomPos] = tmp arr[randomPos] arr randomPos tmp Arrays.sort(arr) Arrays.sort Arrays arr int[] arr arr static class FastReader 
    { 
        BufferedReader br; 
        StringTokenizer st; 
  
        public FastReader() 
        { 
            br = new BufferedReader(new
                     InputStreamReader(System.in)); 
        } 
  
        String next() 
        { 
            while (st == null || !st.hasMoreElements()) 
            { 
                try
                { 
                    st = new StringTokenizer(br.readLine()); 
                } 
                catch (IOException  e) 
                { 
                    e.printStackTrace(); 
                } 
            } 
            return st.nextToken(); 
        } 
  
        int nextInt() 
        { 
            return Integer.parseInt(next()); 
        } 
  
        long nextLong() 
        { 
            return Long.parseLong(next()); 
        } 
  
        double nextDouble() 
        { 
            return Double.parseDouble(next()); 
        } 
  
        String nextLine() 
        { 
            String str = ""; 
            try
            { 
                str = br.readLine(); 
            } 
            catch (IOException e) 
            { 
                e.printStackTrace(); 
            } 
            return str; 
        } 
    } FastReader BufferedReader br; br StringTokenizer st; st public FastReader() 
        { 
            br = new BufferedReader(new
                     InputStreamReader(System.in)); 
        } FastReader { 
            br = new BufferedReader(new
                     InputStreamReader(System.in)); 
        } br = new BufferedReader(new
                     InputStreamReader(System.in)) br new BufferedReader(new
                     InputStreamReader(System.in)) String next() 
        { 
            while (st == null || !st.hasMoreElements()) 
            { 
                try
                { 
                    st = new StringTokenizer(br.readLine()); 
                } 
                catch (IOException  e) 
                { 
                    e.printStackTrace(); 
                } 
            } 
            return st.nextToken(); 
        } next { 
            while (st == null || !st.hasMoreElements()) 
            { 
                try
                { 
                    st = new StringTokenizer(br.readLine()); 
                } 
                catch (IOException  e) 
                { 
                    e.printStackTrace(); 
                } 
            } 
            return st.nextToken(); 
        } while (st == null || !st.hasMoreElements()) 
            { 
                try
                { 
                    st = new StringTokenizer(br.readLine()); 
                } 
                catch (IOException  e) 
                { 
                    e.printStackTrace(); 
                } 
            } st == null || !st.hasMoreElements() st == null st null !st.hasMoreElements() st.hasMoreElements() st.hasMoreElements st { 
                try
                { 
                    st = new StringTokenizer(br.readLine()); 
                } 
                catch (IOException  e) 
                { 
                    e.printStackTrace(); 
                } 
            } try
                { 
                    st = new StringTokenizer(br.readLine()); 
                } 
                catch (IOException  e) 
                { 
                    e.printStackTrace(); 
                } catch (IOException  e) 
                { 
                    e.printStackTrace(); 
                } IOException  e { 
                    e.printStackTrace(); 
                } e.printStackTrace() e.printStackTrace e { 
                    st = new StringTokenizer(br.readLine()); 
                } st = new StringTokenizer(br.readLine()) st new StringTokenizer(br.readLine()) return st.nextToken(); st.nextToken() st.nextToken st int nextInt() 
        { 
            return Integer.parseInt(next()); 
        } nextInt { 
            return Integer.parseInt(next()); 
        } return Integer.parseInt(next()); Integer.parseInt(next()) Integer.parseInt Integer next() next long nextLong() 
        { 
            return Long.parseLong(next()); 
        } nextLong { 
            return Long.parseLong(next()); 
        } return Long.parseLong(next()); Long.parseLong(next()) Long.parseLong Long next() next double nextDouble() 
        { 
            return Double.parseDouble(next()); 
        } nextDouble { 
            return Double.parseDouble(next()); 
        } return Double.parseDouble(next()); Double.parseDouble(next()) Double.parseDouble Double next() next String nextLine() 
        { 
            String str = ""; 
            try
            { 
                str = br.readLine(); 
            } 
            catch (IOException e) 
            { 
                e.printStackTrace(); 
            } 
            return str; 
        } nextLine { 
            String str = ""; 
            try
            { 
                str = br.readLine(); 
            } 
            catch (IOException e) 
            { 
                e.printStackTrace(); 
            } 
            return str; 
        } String str = ""; str "" try
            { 
                str = br.readLine(); 
            } 
            catch (IOException e) 
            { 
                e.printStackTrace(); 
            } catch (IOException e) 
            { 
                e.printStackTrace(); 
            } IOException e { 
                e.printStackTrace(); 
            } e.printStackTrace() e.printStackTrace e { 
                str = br.readLine(); 
            } str = br.readLine() str br.readLine() br.readLine br return str; str public class Main 

{ 
static int mod=1000000007;

	 static FastReader sc=new FastReader(); 
	 
		  public static void main(String[] args) 
    {
			  int n=i();
			  int max=0;
			  int c=0;
			  for(int i=0;i<n;i++) {
				  int a=i();
				  int b=i();
				  if(a==b) {
					  c++;
				  }
				  else {
					  if(c>max)
						  max=c;
					  c=0;
				  }
			  }
			  if(c>max)
				  max=c;
			  if(max>=3)
				  System.out.println("Yes");
			  else
				  System.out.println("No");
			  
			  
			  
    }

		  
		  
		  
static int[] input(int n) {
	int A[]=new int[n];
	   for(int i=0;i<n;i++) {
		   A[i]=sc.nextInt();
	   }
	   return A;
   }
static long[] inputL(int n) {
	long A[]=new long[n];
	   for(int i=0;i<n;i++) {
		   A[i]=sc.nextLong();
	   }
	   return A;
   }
static String[] inputS(int n) {
	String A[]=new String[n];
	   for(int i=0;i<n;i++) {
		   A[i]=sc.next();
	   }
	   return A;
   }


static void input(int A[],int B[]) {
	   for(int i=0;i<A.length;i++) {
		   A[i]=sc.nextInt();
		   B[i]=sc.nextInt();
	   }
}
static long mod(long x) {
	  return ((x%mod + mod)%mod);
}

     static int i() {
    	 return sc.nextInt();
     }
     static String s() {
    	 return sc.next();
     }
     static long l() {
    	 return sc.nextLong();
     }  
     static void sort(int[] arr){
        int n = arr.length;
        Random rnd = new Random();
        for(int i=0; i<n; ++i){
            int tmp = arr[i];
            int randomPos = i + rnd.nextInt(n-i);
            arr[i] = arr[randomPos];
            arr[randomPos] = tmp;
        }
        Arrays.sort(arr);
     }
  
        
        
    static class FastReader 
    { 
        BufferedReader br; 
        StringTokenizer st; 
  
        public FastReader() 
        { 
            br = new BufferedReader(new
                     InputStreamReader(System.in)); 
        } 
  
        String next() 
        { 
            while (st == null || !st.hasMoreElements()) 
            { 
                try
                { 
                    st = new StringTokenizer(br.readLine()); 
                } 
                catch (IOException  e) 
                { 
                    e.printStackTrace(); 
                } 
            } 
            return st.nextToken(); 
        } 
  
        int nextInt() 
        { 
            return Integer.parseInt(next()); 
        } 
  
        long nextLong() 
        { 
            return Long.parseLong(next()); 
        } 
  
        double nextDouble() 
        { 
            return Double.parseDouble(next()); 
        } 
  
        String nextLine() 
        { 
            String str = ""; 
            try
            { 
                str = br.readLine(); 
            } 
            catch (IOException e) 
            { 
                e.printStackTrace(); 
            } 
            return str; 
        } 
    } 
} public class Main 

{ 
static int mod=1000000007;

	 static FastReader sc=new FastReader(); 
	 
		  public static void main(String[] args) 
    {
			  int n=i();
			  int max=0;
			  int c=0;
			  for(int i=0;i<n;i++) {
				  int a=i();
				  int b=i();
				  if(a==b) {
					  c++;
				  }
				  else {
					  if(c>max)
						  max=c;
					  c=0;
				  }
			  }
			  if(c>max)
				  max=c;
			  if(max>=3)
				  System.out.println("Yes");
			  else
				  System.out.println("No");
			  
			  
			  
    }

		  
		  
		  
static int[] input(int n) {
	int A[]=new int[n];
	   for(int i=0;i<n;i++) {
		   A[i]=sc.nextInt();
	   }
	   return A;
   }
static long[] inputL(int n) {
	long A[]=new long[n];
	   for(int i=0;i<n;i++) {
		   A[i]=sc.nextLong();
	   }
	   return A;
   }
static String[] inputS(int n) {
	String A[]=new String[n];
	   for(int i=0;i<n;i++) {
		   A[i]=sc.next();
	   }
	   return A;
   }


static void input(int A[],int B[]) {
	   for(int i=0;i<A.length;i++) {
		   A[i]=sc.nextInt();
		   B[i]=sc.nextInt();
	   }
}
static long mod(long x) {
	  return ((x%mod + mod)%mod);
}

     static int i() {
    	 return sc.nextInt();
     }
     static String s() {
    	 return sc.next();
     }
     static long l() {
    	 return sc.nextLong();
     }  
     static void sort(int[] arr){
        int n = arr.length;
        Random rnd = new Random();
        for(int i=0; i<n; ++i){
            int tmp = arr[i];
            int randomPos = i + rnd.nextInt(n-i);
            arr[i] = arr[randomPos];
            arr[randomPos] = tmp;
        }
        Arrays.sort(arr);
     }
  
        
        
    static class FastReader 
    { 
        BufferedReader br; 
        StringTokenizer st; 
  
        public FastReader() 
        { 
            br = new BufferedReader(new
                     InputStreamReader(System.in)); 
        } 
  
        String next() 
        { 
            while (st == null || !st.hasMoreElements()) 
            { 
                try
                { 
                    st = new StringTokenizer(br.readLine()); 
                } 
                catch (IOException  e) 
                { 
                    e.printStackTrace(); 
                } 
            } 
            return st.nextToken(); 
        } 
  
        int nextInt() 
        { 
            return Integer.parseInt(next()); 
        } 
  
        long nextLong() 
        { 
            return Long.parseLong(next()); 
        } 
  
        double nextDouble() 
        { 
            return Double.parseDouble(next()); 
        } 
  
        String nextLine() 
        { 
            String str = ""; 
            try
            { 
                str = br.readLine(); 
            } 
            catch (IOException e) 
            { 
                e.printStackTrace(); 
            } 
            return str; 
        } 
    } 
} Main


import java.util.*;
import java.io.*;
import java.math.*;

public class Main 

{ 
static int mod=1000000007;

	 static FastReader sc=new FastReader(); 
	 
		  public static void main(String[] args) 
    {
			  int n=i();
			  int max=0;
			  int c=0;
			  for(int i=0;i<n;i++) {
				  int a=i();
				  int b=i();
				  if(a==b) {
					  c++;
				  }
				  else {
					  if(c>max)
						  max=c;
					  c=0;
				  }
			  }
			  if(c>max)
				  max=c;
			  if(max>=3)
				  System.out.println("Yes");
			  else
				  System.out.println("No");
			  
			  
			  
    }

		  
		  
		  
static int[] input(int n) {
	int A[]=new int[n];
	   for(int i=0;i<n;i++) {
		   A[i]=sc.nextInt();
	   }
	   return A;
   }
static long[] inputL(int n) {
	long A[]=new long[n];
	   for(int i=0;i<n;i++) {
		   A[i]=sc.nextLong();
	   }
	   return A;
   }
static String[] inputS(int n) {
	String A[]=new String[n];
	   for(int i=0;i<n;i++) {
		   A[i]=sc.next();
	   }
	   return A;
   }


static void input(int A[],int B[]) {
	   for(int i=0;i<A.length;i++) {
		   A[i]=sc.nextInt();
		   B[i]=sc.nextInt();
	   }
}
static long mod(long x) {
	  return ((x%mod + mod)%mod);
}

     static int i() {
    	 return sc.nextInt();
     }
     static String s() {
    	 return sc.next();
     }
     static long l() {
    	 return sc.nextLong();
     }  
     static void sort(int[] arr){
        int n = arr.length;
        Random rnd = new Random();
        for(int i=0; i<n; ++i){
            int tmp = arr[i];
            int randomPos = i + rnd.nextInt(n-i);
            arr[i] = arr[randomPos];
            arr[randomPos] = tmp;
        }
        Arrays.sort(arr);
     }
  
        
        
    static class FastReader 
    { 
        BufferedReader br; 
        StringTokenizer st; 
  
        public FastReader() 
        { 
            br = new BufferedReader(new
                     InputStreamReader(System.in)); 
        } 
  
        String next() 
        { 
            while (st == null || !st.hasMoreElements()) 
            { 
                try
                { 
                    st = new StringTokenizer(br.readLine()); 
                } 
                catch (IOException  e) 
                { 
                    e.printStackTrace(); 
                } 
            } 
            return st.nextToken(); 
        } 
  
        int nextInt() 
        { 
            return Integer.parseInt(next()); 
        } 
  
        long nextLong() 
        { 
            return Long.parseLong(next()); 
        } 
  
        double nextDouble() 
        { 
            return Double.parseDouble(next()); 
        } 
  
        String nextLine() 
        { 
            String str = ""; 
            try
            { 
                str = br.readLine(); 
            } 
            catch (IOException e) 
            { 
                e.printStackTrace(); 
            } 
            return str; 
        } 
    } 
} 



