#include "bits/stdc++.h" using namespace std; #define all(x) begin(x),end(x) template ostream& operator<<(ostream &os, const pair &p) { return os << '(' << p.first << ", " << p.second << ')'; } template::value, typename T_container::value_type>::type> ostream& operator<<(ostream &os, const T_container &v) { string sep; for (const T &x : v) os << sep << x, sep = " "; return os; } #define debug(a) cerr << "(" << #a << ": " << a << ")\n"; typedef long long ll; typedef vector vi; typedef vector vvi; typedef pair pi; const int mxN = 1e5+1, oo = 1e9; string name[] = {"C4", "D4","E4","F4","G4","A4","B4"}; double freq[] = {261.6, 294.3, 327.0, 348.8,392.4,436.0,490.5}; const int K = 7; int main() { #ifdef LOCAL freopen("c.in","r",stdin); #endif int n; cin >> n; vi a(n); for(auto& i : a) cin >> i; pair best = {}; for(int i=0;i