#include <bits/stdc++.h>
using namespace std;
int main() {
vector<int> vec;
for(int i=0;i<100000;i++)
vec.push_back(5);
int l = vec.size();
for(int i=0;i<vec.size();i++)
{
if(vec[i]==5)
{
vec.erase(vec.begin()+i);
i=0;
}
}
cout << vec.size() << endl;
cout << "Done" << endl;
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpIHsKCXZlY3RvcjxpbnQ+IHZlYzsKCWZvcihpbnQgaT0wO2k8MTAwMDAwO2krKykKCQl2ZWMucHVzaF9iYWNrKDUpOwoJaW50IGwgPSB2ZWMuc2l6ZSgpOwoJZm9yKGludCBpPTA7aTx2ZWMuc2l6ZSgpO2krKykKCXsKCSAgIGlmKHZlY1tpXT09NSkKCSAgIHsKCSAgICAgICB2ZWMuZXJhc2UodmVjLmJlZ2luKCkraSk7CgkgICAgICAgaT0wOwoJICAgfQoJfQoJY291dCA8PCB2ZWMuc2l6ZSgpIDw8IGVuZGw7Cgljb3V0IDw8ICJEb25lIiA8PCBlbmRsOwoJcmV0dXJuIDA7Cn0=