#include <bits/stdc++.h>
#define rep(i,n) for(int i = 0;i < (n);i++)
using namespace std;
using ll = long long;
using pii = pair<int,int>;

const int INF = 2e9;

int main(){
    int n;
  	cin >> n;
    vector<bool> flag(n+1);
    int num = 0;
    rep(i,n){
        int a;
        cin >> a;
        flag[a] = true;
        while(true){
            if(flag[num] == false){
                cout << num << endl;
                break;
            }
          	else num++;
        }
    }
}
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;

int main()
{
  int N;
  cin >> N;
  
  int ans;
  ans = (N - 1) / 100 + 1;
  
  cout << ans << endl;
}