#include using namespace std; int main(void) { cin.tie(0); ios::sync_with_stdio(false); int n,t; vector v; cin >> n; for(int i=0;i> t; v.push_back(t); } sort(v.rbegin(),v.rend()); int g = __gcd(v[0],v[1]); cout << v[1]/g << ' ' << v[0]/g << '\n'; return 0; }