import java.util.*;
public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
   int N = sc.nextInt();
   
   boolean glay = false;
   boolean blown = false;
   boolean green = false;
   boolean sky = false;
   boolean blue = false;
   boolean yellow = false;
   boolean orange = false;
   boolean red = false;
   
   int tmp = 0;
   int allcount=0;
   for(int i = 0;i<N;i++) 
   {
     tmp = sc.nextInt();
     if(!glay&&tmp<400) glay = true;
     else if(!blown&&tmp>=400&&tmp<800) blown = true;
     else if(!green&&tmp>=800&&tmp<1200) green = true;
     else if(!sky&&tmp>=1200&&tmp<1600) sky = true;
     else if(!blue&&tmp>=1600&&tmp<2000) blue = true;
     else if(!yellow&&tmp>=2000&&tmp<2400) yellow = true;
     else if(!orange&&tmp>=2400&&tmp<2800) orange = true;
     else if(!red&&tmp>=2800&&tmp<3200) red = true;
     else if(tmp>=3200) allcount++;
   }
   int anslow =0;
   if(glay) anslow++;
   if(blown) anslow++;
   if(green) anslow++;
   if(sky) anslow++;
   if(blue) anslow++;
   if(yellow) anslow++;
   if(orange) anslow++;
   if(red) anslow++;
   
   int  anshigh = anslow+allcount;
   if(anslow==0) anslow++;
   System.out.println(anslow+" "+anshigh);
 }
} import java.util.*; util.* java public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
   int N = sc.nextInt();
   
   boolean glay = false;
   boolean blown = false;
   boolean green = false;
   boolean sky = false;
   boolean blue = false;
   boolean yellow = false;
   boolean orange = false;
   boolean red = false;
   
   int tmp = 0;
   int allcount=0;
   for(int i = 0;i<N;i++) 
   {
     tmp = sc.nextInt();
     if(!glay&&tmp<400) glay = true;
     else if(!blown&&tmp>=400&&tmp<800) blown = true;
     else if(!green&&tmp>=800&&tmp<1200) green = true;
     else if(!sky&&tmp>=1200&&tmp<1600) sky = true;
     else if(!blue&&tmp>=1600&&tmp<2000) blue = true;
     else if(!yellow&&tmp>=2000&&tmp<2400) yellow = true;
     else if(!orange&&tmp>=2400&&tmp<2800) orange = true;
     else if(!red&&tmp>=2800&&tmp<3200) red = true;
     else if(tmp>=3200) allcount++;
   }
   int anslow =0;
   if(glay) anslow++;
   if(blown) anslow++;
   if(green) anslow++;
   if(sky) anslow++;
   if(blue) anslow++;
   if(yellow) anslow++;
   if(orange) anslow++;
   if(red) anslow++;
   
   int  anshigh = anslow+allcount;
   if(anslow==0) anslow++;
   System.out.println(anslow+" "+anshigh);
 }
} Main public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
   int N = sc.nextInt();
   
   boolean glay = false;
   boolean blown = false;
   boolean green = false;
   boolean sky = false;
   boolean blue = false;
   boolean yellow = false;
   boolean orange = false;
   boolean red = false;
   
   int tmp = 0;
   int allcount=0;
   for(int i = 0;i<N;i++) 
   {
     tmp = sc.nextInt();
     if(!glay&&tmp<400) glay = true;
     else if(!blown&&tmp>=400&&tmp<800) blown = true;
     else if(!green&&tmp>=800&&tmp<1200) green = true;
     else if(!sky&&tmp>=1200&&tmp<1600) sky = true;
     else if(!blue&&tmp>=1600&&tmp<2000) blue = true;
     else if(!yellow&&tmp>=2000&&tmp<2400) yellow = true;
     else if(!orange&&tmp>=2400&&tmp<2800) orange = true;
     else if(!red&&tmp>=2800&&tmp<3200) red = true;
     else if(tmp>=3200) allcount++;
   }
   int anslow =0;
   if(glay) anslow++;
   if(blown) anslow++;
   if(green) anslow++;
   if(sky) anslow++;
   if(blue) anslow++;
   if(yellow) anslow++;
   if(orange) anslow++;
   if(red) anslow++;
   
   int  anshigh = anslow+allcount;
   if(anslow==0) anslow++;
   System.out.println(anslow+" "+anshigh);
 } main {
   Scanner sc = new Scanner(System.in);
   int N = sc.nextInt();
   
   boolean glay = false;
   boolean blown = false;
   boolean green = false;
   boolean sky = false;
   boolean blue = false;
   boolean yellow = false;
   boolean orange = false;
   boolean red = false;
   
   int tmp = 0;
   int allcount=0;
   for(int i = 0;i<N;i++) 
   {
     tmp = sc.nextInt();
     if(!glay&&tmp<400) glay = true;
     else if(!blown&&tmp>=400&&tmp<800) blown = true;
     else if(!green&&tmp>=800&&tmp<1200) green = true;
     else if(!sky&&tmp>=1200&&tmp<1600) sky = true;
     else if(!blue&&tmp>=1600&&tmp<2000) blue = true;
     else if(!yellow&&tmp>=2000&&tmp<2400) yellow = true;
     else if(!orange&&tmp>=2400&&tmp<2800) orange = true;
     else if(!red&&tmp>=2800&&tmp<3200) red = true;
     else if(tmp>=3200) allcount++;
   }
   int anslow =0;
   if(glay) anslow++;
   if(blown) anslow++;
   if(green) anslow++;
   if(sky) anslow++;
   if(blue) anslow++;
   if(yellow) anslow++;
   if(orange) anslow++;
   if(red) anslow++;
   
   int  anshigh = anslow+allcount;
   if(anslow==0) anslow++;
   System.out.println(anslow+" "+anshigh);
 } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc boolean glay = false; glay false boolean blown = false; blown false boolean green = false; green false boolean sky = false; sky false boolean blue = false; blue false boolean yellow = false; yellow false boolean orange = false; orange false boolean red = false; red false int tmp = 0; tmp 0 int allcount=0; allcount 0 for(int i = 0;i<N;i++) 
   {
     tmp = sc.nextInt();
     if(!glay&&tmp<400) glay = true;
     else if(!blown&&tmp>=400&&tmp<800) blown = true;
     else if(!green&&tmp>=800&&tmp<1200) green = true;
     else if(!sky&&tmp>=1200&&tmp<1600) sky = true;
     else if(!blue&&tmp>=1600&&tmp<2000) blue = true;
     else if(!yellow&&tmp>=2000&&tmp<2400) yellow = true;
     else if(!orange&&tmp>=2400&&tmp<2800) orange = true;
     else if(!red&&tmp>=2800&&tmp<3200) red = true;
     else if(tmp>=3200) allcount++;
   } int i = 0; int i = 0; i 0 i<N i N i++ i++ i {
     tmp = sc.nextInt();
     if(!glay&&tmp<400) glay = true;
     else if(!blown&&tmp>=400&&tmp<800) blown = true;
     else if(!green&&tmp>=800&&tmp<1200) green = true;
     else if(!sky&&tmp>=1200&&tmp<1600) sky = true;
     else if(!blue&&tmp>=1600&&tmp<2000) blue = true;
     else if(!yellow&&tmp>=2000&&tmp<2400) yellow = true;
     else if(!orange&&tmp>=2400&&tmp<2800) orange = true;
     else if(!red&&tmp>=2800&&tmp<3200) red = true;
     else if(tmp>=3200) allcount++;
   } {
     tmp = sc.nextInt();
     if(!glay&&tmp<400) glay = true;
     else if(!blown&&tmp>=400&&tmp<800) blown = true;
     else if(!green&&tmp>=800&&tmp<1200) green = true;
     else if(!sky&&tmp>=1200&&tmp<1600) sky = true;
     else if(!blue&&tmp>=1600&&tmp<2000) blue = true;
     else if(!yellow&&tmp>=2000&&tmp<2400) yellow = true;
     else if(!orange&&tmp>=2400&&tmp<2800) orange = true;
     else if(!red&&tmp>=2800&&tmp<3200) red = true;
     else if(tmp>=3200) allcount++;
   } tmp = sc.nextInt() tmp sc.nextInt() sc.nextInt sc if(!glay&&tmp<400) glay = true;
     else if(!blown&&tmp>=400&&tmp<800) blown = true;
     else if(!green&&tmp>=800&&tmp<1200) green = true;
     else if(!sky&&tmp>=1200&&tmp<1600) sky = true;
     else if(!blue&&tmp>=1600&&tmp<2000) blue = true;
     else if(!yellow&&tmp>=2000&&tmp<2400) yellow = true;
     else if(!orange&&tmp>=2400&&tmp<2800) orange = true;
     else if(!red&&tmp>=2800&&tmp<3200) red = true;
     else if(tmp>=3200) allcount++; !glay&&tmp<400 !glay glay tmp<400 tmp 400 glay = true glay true if(!blown&&tmp>=400&&tmp<800) blown = true;
     else if(!green&&tmp>=800&&tmp<1200) green = true;
     else if(!sky&&tmp>=1200&&tmp<1600) sky = true;
     else if(!blue&&tmp>=1600&&tmp<2000) blue = true;
     else if(!yellow&&tmp>=2000&&tmp<2400) yellow = true;
     else if(!orange&&tmp>=2400&&tmp<2800) orange = true;
     else if(!red&&tmp>=2800&&tmp<3200) red = true;
     else if(tmp>=3200) allcount++; !blown&&tmp>=400&&tmp<800 !blown&&tmp>=400&&tmp<800 !blown blown tmp>=400 tmp 400 tmp<800 tmp 800 blown = true blown true if(!green&&tmp>=800&&tmp<1200) green = true;
     else if(!sky&&tmp>=1200&&tmp<1600) sky = true;
     else if(!blue&&tmp>=1600&&tmp<2000) blue = true;
     else if(!yellow&&tmp>=2000&&tmp<2400) yellow = true;
     else if(!orange&&tmp>=2400&&tmp<2800) orange = true;
     else if(!red&&tmp>=2800&&tmp<3200) red = true;
     else if(tmp>=3200) allcount++; !green&&tmp>=800&&tmp<1200 !green&&tmp>=800&&tmp<1200 !green green tmp>=800 tmp 800 tmp<1200 tmp 1200 green = true green true if(!sky&&tmp>=1200&&tmp<1600) sky = true;
     else if(!blue&&tmp>=1600&&tmp<2000) blue = true;
     else if(!yellow&&tmp>=2000&&tmp<2400) yellow = true;
     else if(!orange&&tmp>=2400&&tmp<2800) orange = true;
     else if(!red&&tmp>=2800&&tmp<3200) red = true;
     else if(tmp>=3200) allcount++; !sky&&tmp>=1200&&tmp<1600 !sky&&tmp>=1200&&tmp<1600 !sky sky tmp>=1200 tmp 1200 tmp<1600 tmp 1600 sky = true sky true if(!blue&&tmp>=1600&&tmp<2000) blue = true;
     else if(!yellow&&tmp>=2000&&tmp<2400) yellow = true;
     else if(!orange&&tmp>=2400&&tmp<2800) orange = true;
     else if(!red&&tmp>=2800&&tmp<3200) red = true;
     else if(tmp>=3200) allcount++; !blue&&tmp>=1600&&tmp<2000 !blue&&tmp>=1600&&tmp<2000 !blue blue tmp>=1600 tmp 1600 tmp<2000 tmp 2000 blue = true blue true if(!yellow&&tmp>=2000&&tmp<2400) yellow = true;
     else if(!orange&&tmp>=2400&&tmp<2800) orange = true;
     else if(!red&&tmp>=2800&&tmp<3200) red = true;
     else if(tmp>=3200) allcount++; !yellow&&tmp>=2000&&tmp<2400 !yellow&&tmp>=2000&&tmp<2400 !yellow yellow tmp>=2000 tmp 2000 tmp<2400 tmp 2400 yellow = true yellow true if(!orange&&tmp>=2400&&tmp<2800) orange = true;
     else if(!red&&tmp>=2800&&tmp<3200) red = true;
     else if(tmp>=3200) allcount++; !orange&&tmp>=2400&&tmp<2800 !orange&&tmp>=2400&&tmp<2800 !orange orange tmp>=2400 tmp 2400 tmp<2800 tmp 2800 orange = true orange true if(!red&&tmp>=2800&&tmp<3200) red = true;
     else if(tmp>=3200) allcount++; !red&&tmp>=2800&&tmp<3200 !red&&tmp>=2800&&tmp<3200 !red red tmp>=2800 tmp 2800 tmp<3200 tmp 3200 red = true red true if(tmp>=3200) allcount++; tmp>=3200 tmp 3200 allcount++ allcount int anslow =0; anslow 0 if(glay) anslow++; glay anslow++ anslow if(blown) anslow++; blown anslow++ anslow if(green) anslow++; green anslow++ anslow if(sky) anslow++; sky anslow++ anslow if(blue) anslow++; blue anslow++ anslow if(yellow) anslow++; yellow anslow++ anslow if(orange) anslow++; orange anslow++ anslow if(red) anslow++; red anslow++ anslow int  anshigh = anslow+allcount; anshigh anslow+allcount anslow allcount if(anslow==0) anslow++; anslow==0 anslow 0 anslow++ anslow System.out.println(anslow+" "+anshigh) System.out.println System.out System System.out anslow+" "+anshigh anslow+" "+anshigh anslow " " anshigh String[] args args public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
   int N = sc.nextInt();
   
   boolean glay = false;
   boolean blown = false;
   boolean green = false;
   boolean sky = false;
   boolean blue = false;
   boolean yellow = false;
   boolean orange = false;
   boolean red = false;
   
   int tmp = 0;
   int allcount=0;
   for(int i = 0;i<N;i++) 
   {
     tmp = sc.nextInt();
     if(!glay&&tmp<400) glay = true;
     else if(!blown&&tmp>=400&&tmp<800) blown = true;
     else if(!green&&tmp>=800&&tmp<1200) green = true;
     else if(!sky&&tmp>=1200&&tmp<1600) sky = true;
     else if(!blue&&tmp>=1600&&tmp<2000) blue = true;
     else if(!yellow&&tmp>=2000&&tmp<2400) yellow = true;
     else if(!orange&&tmp>=2400&&tmp<2800) orange = true;
     else if(!red&&tmp>=2800&&tmp<3200) red = true;
     else if(tmp>=3200) allcount++;
   }
   int anslow =0;
   if(glay) anslow++;
   if(blown) anslow++;
   if(green) anslow++;
   if(sky) anslow++;
   if(blue) anslow++;
   if(yellow) anslow++;
   if(orange) anslow++;
   if(red) anslow++;
   
   int  anshigh = anslow+allcount;
   if(anslow==0) anslow++;
   System.out.println(anslow+" "+anshigh);
 }
} public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
   int N = sc.nextInt();
   
   boolean glay = false;
   boolean blown = false;
   boolean green = false;
   boolean sky = false;
   boolean blue = false;
   boolean yellow = false;
   boolean orange = false;
   boolean red = false;
   
   int tmp = 0;
   int allcount=0;
   for(int i = 0;i<N;i++) 
   {
     tmp = sc.nextInt();
     if(!glay&&tmp<400) glay = true;
     else if(!blown&&tmp>=400&&tmp<800) blown = true;
     else if(!green&&tmp>=800&&tmp<1200) green = true;
     else if(!sky&&tmp>=1200&&tmp<1600) sky = true;
     else if(!blue&&tmp>=1600&&tmp<2000) blue = true;
     else if(!yellow&&tmp>=2000&&tmp<2400) yellow = true;
     else if(!orange&&tmp>=2400&&tmp<2800) orange = true;
     else if(!red&&tmp>=2800&&tmp<3200) red = true;
     else if(tmp>=3200) allcount++;
   }
   int anslow =0;
   if(glay) anslow++;
   if(blown) anslow++;
   if(green) anslow++;
   if(sky) anslow++;
   if(blue) anslow++;
   if(yellow) anslow++;
   if(orange) anslow++;
   if(red) anslow++;
   
   int  anshigh = anslow+allcount;
   if(anslow==0) anslow++;
   System.out.println(anslow+" "+anshigh);
 }
} Main
import java.util.*;
public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
   int N = sc.nextInt();
   
   boolean glay = false;
   boolean blown = false;
   boolean green = false;
   boolean sky = false;
   boolean blue = false;
   boolean yellow = false;
   boolean orange = false;
   boolean red = false;
   
   int tmp = 0;
   int allcount=0;
   for(int i = 0;i<N;i++) 
   {
     tmp = sc.nextInt();
     if(!glay&&tmp<400) glay = true;
     else if(!blown&&tmp>=400&&tmp<800) blown = true;
     else if(!green&&tmp>=800&&tmp<1200) green = true;
     else if(!sky&&tmp>=1200&&tmp<1600) sky = true;
     else if(!blue&&tmp>=1600&&tmp<2000) blue = true;
     else if(!yellow&&tmp>=2000&&tmp<2400) yellow = true;
     else if(!orange&&tmp>=2400&&tmp<2800) orange = true;
     else if(!red&&tmp>=2800&&tmp<3200) red = true;
     else if(tmp>=3200) allcount++;
   }
   int anslow =0;
   if(glay) anslow++;
   if(blown) anslow++;
   if(green) anslow++;
   if(sky) anslow++;
   if(blue) anslow++;
   if(yellow) anslow++;
   if(orange) anslow++;
   if(red) anslow++;
   
   int  anshigh = anslow+allcount;
   if(anslow==0) anslow++;
   System.out.println(anslow+" "+anshigh);
 }
}