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) { Scanner in = new Scanner(System.in); int n = in.nextInt(); ArrayList xx = new ArrayList(); ArrayList yy = new ArrayList(); for(int a0 = 0; a0 < n; a0++){ xx.add(in.nextInt()); yy.add(in.nextInt()); } int flg1=0,flg2=0; for(int i=0;i