#include <bits/stdc++.h>   using namespace std;   using ll = long long int;   using ld = long double;   using vi = vector<int>;   using vll = vector<ll>;   using vd = vector<double>;   using vvi = vector<vi>;   int ctoi(char c) { return c -  0 ; }   int slen(string s) { return s.length(); }   int vsize(vi a) { return (int)a.size(); }   int in() {     int x;     cin >> x;     return x;   }   int main() {     ios::sync_with_stdio(false);     cin.tie(nullptr);     int N;     cin >> N;     vi d(N);     for (auto& x : d) cin >> x;     int mn = abs(d[N - 1] - d[0]);     int a = N - 1, b = 0;     for (int i = 1; i < N; i++) {       if (abs(d[i] - d[i - 1]) < mn) {         mn = abs(d[i] - d[i - 1]);         a = i;         b = i - 1;       }     }     cout << a + 1 <<     << b + 1 << endl;     return 0;   }   