#include<bits/stdc++.h>
using namespace std;
template<typename key,typename value>
class map_sort_with_value{
private:
unordered_map<key,value>mp;
vector<pair<key,value>>vct;
public:
bool cmp(pair<key,value> vala,pair<key,value> valb){return vala.second>valb.second;}
value &operator()(int __val){
vct.clear();
for(auto i:mp){
vct.push_back(i);
}
sort(vct.begin(),vct.end(),cmp);
return &mp[vct[__val].first];
}
value &operator[](const key __val){
return &mp[__val];
}
long long size(){
return mp.size();
}
};
int main(){
map_sort_with_value<int,int>mp;
mp[1]=1;
mp[0]=2;
for(int i=0;i<mp.size();i++) cout<<mp(i);
return 0;
}