import java.io.*;
import java.util.*;
import java.lang.*;

public class c1 {
    public static FScanner scan;
    public static PrintWriter out;
    public static void main(String[] args) {
        scan=new FScanner();
        out=new PrintWriter(new BufferedOutputStream(System.out));

        int t=1;
//        int t=scan.nextInt();
        while(t-->0) {

            int n=scan.nextInt(),max=0,gcd;
            long ans=0;
            int[] a=new int[n];
            for(int c=0;c<n;c++) {
                a[c]=scan.nextInt();
                max=Math.max(max,a[c]);
            } gcd=max-a[0];

            for(int c=0;c<n;c++) gcd=gcd(gcd,max-a[c]);
            for(int c=0;c<n;c++) ans+=(max-a[c])/gcd;
//            out.println(gcd);
            out.println(ans+" "+gcd);

        }
        out.close();
    }

    static int gcd(int a,int b) {
        if(b==0) return a;
        return gcd(b,a%b);
    }

    //------------------------------------------------------------------------------------------------------------------

    //scanner
    public static class FScanner {
        BufferedReader br;
        StringTokenizer st;

        public FScanner() {
            br = new BufferedReader(new InputStreamReader(System.in));
        }

        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }

        double nextDouble() {
            return Double.parseDouble(next());
        }

        String nextLine() {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }
    }
}