#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std ;
using namespace __gnu_pbds;
typedef tree<int, null_type, less_equal<int>, rb_tree_tag, tree_order_statistics_node_update> ordered_set;
signed main(){
ordered_set s ;
s.insert(0) ;
s.insert(0) ;
s.insert(0) ;
s.insert(0) ;
cout << int(s.size()) << endl ;
s.erase(s.find(0)) ;
cout << int(s.size()) << endl ;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CiNpbmNsdWRlIDxleHQvcGJfZHMvYXNzb2NfY29udGFpbmVyLmhwcD4gIAojaW5jbHVkZSA8ZXh0L3BiX2RzL3RyZWVfcG9saWN5LmhwcD4gICAKCnVzaW5nIG5hbWVzcGFjZSBzdGQgOwp1c2luZyBuYW1lc3BhY2UgX19nbnVfcGJkczsKIAp0eXBlZGVmIHRyZWU8aW50LCBudWxsX3R5cGUsIGxlc3NfZXF1YWw8aW50PiwgcmJfdHJlZV90YWcsIHRyZWVfb3JkZXJfc3RhdGlzdGljc19ub2RlX3VwZGF0ZT4gb3JkZXJlZF9zZXQ7CgpzaWduZWQgbWFpbigpewogIG9yZGVyZWRfc2V0IHMgOwogIHMuaW5zZXJ0KDApIDsKICBzLmluc2VydCgwKSA7CiAgcy5pbnNlcnQoMCkgOyAKICBzLmluc2VydCgwKSA7CiAgY291dCA8PCBpbnQocy5zaXplKCkpIDw8IGVuZGwgOwogIHMuZXJhc2Uocy5maW5kKDApKSA7CiAgY291dCA8PCBpbnQocy5zaXplKCkpIDw8IGVuZGwgOwogIAp9