import java.util.Scanner; class Main{ public static void main(String[] args) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(),a[]=new int[50],m=0,s1=0,s2=0,t=0,i; for(i=0;im) m=a[i]; if(i>0&&a[i-1]!=a[i]) t++; } sc.close(); for(i=0;ia[i]) s2++; else s1++; } if(1>t&&m/(n-1)>2) System.out.print(s2+" "+s1); else System.out.print(s1+" "+s2); } }