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

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int rates[] = new int[8];
        int ored = 0;
        for (int i = 0; i < n; i++) {
            int tmp = sc.nextInt();
            if (tmp >= 3200) {
                ored++;
                continue;
            }
            rates[(int) tmp / 400] = tmp;
        }
        int ans = 0;
        int check = 0;
        for (int i = 0; i < 8; i++) {
            if (rates[i] != 0)
                ans++;
            check += rates[i];
        }
        boolean isRed = false;
        if (check == 0) {
            ans = 1;
            isRed = true;
        }
        System.out.print(ans + " ");
        if (ored > 0) {
            ans += ored;
            if (isRed)
                ans--;
        }
        System.out.println(ans);
    }
} import java.math.*; math.* java import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int rates[] = new int[8];
        int ored = 0;
        for (int i = 0; i < n; i++) {
            int tmp = sc.nextInt();
            if (tmp >= 3200) {
                ored++;
                continue;
            }
            rates[(int) tmp / 400] = tmp;
        }
        int ans = 0;
        int check = 0;
        for (int i = 0; i < 8; i++) {
            if (rates[i] != 0)
                ans++;
            check += rates[i];
        }
        boolean isRed = false;
        if (check == 0) {
            ans = 1;
            isRed = true;
        }
        System.out.print(ans + " ");
        if (ored > 0) {
            ans += ored;
            if (isRed)
                ans--;
        }
        System.out.println(ans);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int rates[] = new int[8];
        int ored = 0;
        for (int i = 0; i < n; i++) {
            int tmp = sc.nextInt();
            if (tmp >= 3200) {
                ored++;
                continue;
            }
            rates[(int) tmp / 400] = tmp;
        }
        int ans = 0;
        int check = 0;
        for (int i = 0; i < 8; i++) {
            if (rates[i] != 0)
                ans++;
            check += rates[i];
        }
        boolean isRed = false;
        if (check == 0) {
            ans = 1;
            isRed = true;
        }
        System.out.print(ans + " ");
        if (ored > 0) {
            ans += ored;
            if (isRed)
                ans--;
        }
        System.out.println(ans);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int rates[] = new int[8];
        int ored = 0;
        for (int i = 0; i < n; i++) {
            int tmp = sc.nextInt();
            if (tmp >= 3200) {
                ored++;
                continue;
            }
            rates[(int) tmp / 400] = tmp;
        }
        int ans = 0;
        int check = 0;
        for (int i = 0; i < 8; i++) {
            if (rates[i] != 0)
                ans++;
            check += rates[i];
        }
        boolean isRed = false;
        if (check == 0) {
            ans = 1;
            isRed = true;
        }
        System.out.print(ans + " ");
        if (ored > 0) {
            ans += ored;
            if (isRed)
                ans--;
        }
        System.out.println(ans);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int rates[] = new int[8]; rates new int[8] 8 int ored = 0; ored 0 for (int i = 0; i < n; i++) {
            int tmp = sc.nextInt();
            if (tmp >= 3200) {
                ored++;
                continue;
            }
            rates[(int) tmp / 400] = tmp;
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            int tmp = sc.nextInt();
            if (tmp >= 3200) {
                ored++;
                continue;
            }
            rates[(int) tmp / 400] = tmp;
        } {
            int tmp = sc.nextInt();
            if (tmp >= 3200) {
                ored++;
                continue;
            }
            rates[(int) tmp / 400] = tmp;
        } int tmp = sc.nextInt(); tmp sc.nextInt() sc.nextInt sc if (tmp >= 3200) {
                ored++;
                continue;
            } tmp >= 3200 tmp 3200 {
                ored++;
                continue;
            } ored++ ored continue; rates[(int) tmp / 400] = tmp rates[(int) tmp / 400] rates (int) tmp / 400 (int) tmp 400 tmp int ans = 0; ans 0 int check = 0; check 0 for (int i = 0; i < 8; i++) {
            if (rates[i] != 0)
                ans++;
            check += rates[i];
        } int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i {
            if (rates[i] != 0)
                ans++;
            check += rates[i];
        } {
            if (rates[i] != 0)
                ans++;
            check += rates[i];
        } if (rates[i] != 0)
                ans++; rates[i] != 0 rates[i] rates i 0 ans++ ans check += rates[i] check rates[i] rates i boolean isRed = false; isRed false if (check == 0) {
            ans = 1;
            isRed = true;
        } check == 0 check 0 {
            ans = 1;
            isRed = true;
        } ans = 1 ans 1 isRed = true isRed true System.out.print(ans + " ") System.out.print System.out System System.out ans + " " ans " " if (ored > 0) {
            ans += ored;
            if (isRed)
                ans--;
        } ored > 0 ored 0 {
            ans += ored;
            if (isRed)
                ans--;
        } ans += ored ans ored if (isRed)
                ans--; isRed ans-- ans System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int rates[] = new int[8];
        int ored = 0;
        for (int i = 0; i < n; i++) {
            int tmp = sc.nextInt();
            if (tmp >= 3200) {
                ored++;
                continue;
            }
            rates[(int) tmp / 400] = tmp;
        }
        int ans = 0;
        int check = 0;
        for (int i = 0; i < 8; i++) {
            if (rates[i] != 0)
                ans++;
            check += rates[i];
        }
        boolean isRed = false;
        if (check == 0) {
            ans = 1;
            isRed = true;
        }
        System.out.print(ans + " ");
        if (ored > 0) {
            ans += ored;
            if (isRed)
                ans--;
        }
        System.out.println(ans);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int rates[] = new int[8];
        int ored = 0;
        for (int i = 0; i < n; i++) {
            int tmp = sc.nextInt();
            if (tmp >= 3200) {
                ored++;
                continue;
            }
            rates[(int) tmp / 400] = tmp;
        }
        int ans = 0;
        int check = 0;
        for (int i = 0; i < 8; i++) {
            if (rates[i] != 0)
                ans++;
            check += rates[i];
        }
        boolean isRed = false;
        if (check == 0) {
            ans = 1;
            isRed = true;
        }
        System.out.print(ans + " ");
        if (ored > 0) {
            ans += ored;
            if (isRed)
                ans--;
        }
        System.out.println(ans);
    }
} Main
import java.math.*;
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int rates[] = new int[8];
        int ored = 0;
        for (int i = 0; i < n; i++) {
            int tmp = sc.nextInt();
            if (tmp >= 3200) {
                ored++;
                continue;
            }
            rates[(int) tmp / 400] = tmp;
        }
        int ans = 0;
        int check = 0;
        for (int i = 0; i < 8; i++) {
            if (rates[i] != 0)
                ans++;
            check += rates[i];
        }
        boolean isRed = false;
        if (check == 0) {
            ans = 1;
            isRed = true;
        }
        System.out.print(ans + " ");
        if (ored > 0) {
            ans += ored;
            if (isRed)
                ans--;
        }
        System.out.println(ans);
    }
}