#include <bits/stdc++.h>   using namespace std;   void solve() {     int n, t;     cin >> n >> t;     for (int i = 1; i <= n; i++) {       int val;       cin >> val;       t -= (86400 - val);       if (t <= 0) {         cout << i <<   n ;         return;       }     }   }   int main() {     solve();     return 0;   }   