#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  ll n;
  cin >> n;
  ll k;
  cin >> k;
  vector<ll> v(n + 1);
  for (ll i = 1; i <= n; ++i) {
    cin >> v[i];
  }
  ll i = 1;
  while (k > 0) {
    if (i > n) i = 1;
    k -= i;
    if (k <= 0) {
      cout << v[i + k] << endl;
      break;
    }
    i++;
  }
}
