import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution { public static void main(String[] args) { boolean firstTime = true; Scanner in = new Scanner(System.in); int n = in.nextInt(); int[][] temp = new int[n][2]; for(int a0 = 0; a0 < n; a0++){ int x = in.nextInt(); int y = in.nextInt(); temp[a0][0] = x; temp[a0][1] = y; } boolean vertical = false; boolean horizontal = false; for(int i=0; i