#include #define fi first #define se second #define rep(i,s,n) for (int i = (s); i < (n); ++i) #define rrep(i,n,g) for (int i = (n)-1; i >= (g); --i) #define all(a) a.begin(),a.end() #define rall(a) a.rbegin(),a.rend() #define len(x) (int)(x).size() #define dup(x,y) (((x)+(y)-1)/(y)) #define pb push_back #define eb emplace_back #define Field(T) vector> #define pq(T) priority_queue, greater> using namespace std; using ll = long long; using ull = unsigned long long; using P = pair; templatebool chmax(T&a,T b){if(abool chmin(T&a,T b){if(b> n; vector a(n); rep(i,0,n) cin >> a[i]; sort(all(a)); int x = a[0], y = a[1]; rep(i,2,n) { if (1LL*x*a[i] <= 1LL*y*a[i-1]) { x = a[i-1], y = a[i]; } } int g = __gcd(x, y); x /= g, y /= g; cout << x << " " << y << endl; return 0; }