#include <bits/stdc++.h>
#define ll long long
#define endl '\n'
#define PI acos(-1)
#define sz 300
#define RUN_FAST ios::sync_with_stdio(false);
using namespace std;

int main ()
{
    RUN_FAST; cin.tie(nullptr);
    int n, cnt, mx1=0, mx2, ans;
    cin >> n;
    int arr[n], i, j;
    for (i=0; i<n; i++) {
        cin >> arr[i];
        mx1=max(mx1, arr[i]);
    }
    mx2=0;
    ans=2;
    for (i=2; i<=mx1; i++) {
        cnt=0;
        for (j=0; j<n; j++)
            if (arr[j]%i==0) cnt++;
        if (cnt>mx2) {
            mx2=cnt;
            ans=i;
        }
    }
    cout << ans << endl;
    return 0;
}

#include<iostream>
#include <bits/stdc++.h>
#define ll long long
using namespace std;
 
int main()
{
    int t;
    long int n=0, m=0, a=0, a1=0, b=0, c=0, d=0, x=0, y=0, z=0, k=0, l=0, x1;
  cin>>n;
  long int arr[n];
  for ( int i=0; i<n; i++ )  {  cin>>arr[i];
                              a=a+abs(arr[i]);
                              b=b+(arr[i]*arr[i]);
                              if (d<abs(arr[i]))
                                d=abs(arr[i]);
                             }
  
   double val1 = 1.0;
  val1=val1*b;
  cout<<a<<endl;
  
    cout << fixed << setprecision(12) << sqrt(val1) << endl; 
  cout<<d<<endl;

    return 0;
}