#include<bits/stdc++.h>
using namespace std;
int main()
{
priority_queue<int , vector<int> , greater<int> > pmin;
priority_queue<int , vector<int> >pmax;
pmin.push(5);
pmin.push(9);
pmin.push(10);
pmax.push(1);
cout << (pmax.size() - pmin.size()) << endl;
int diff = pmax.size() - pmin.size();
cout << diff <<endl;
return 0 ;
}
I2luY2x1ZGU8Yml0cy9zdGRjKysuaD4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKaW50IG1haW4oKQp7CiAgICBwcmlvcml0eV9xdWV1ZTxpbnQgLCB2ZWN0b3I8aW50PiAsIGdyZWF0ZXI8aW50PiA+IHBtaW47CiAgICBwcmlvcml0eV9xdWV1ZTxpbnQgLCB2ZWN0b3I8aW50PiA+cG1heDsKICAgIHBtaW4ucHVzaCg1KTsKICAgIHBtaW4ucHVzaCg5KTsKICAgIHBtaW4ucHVzaCgxMCk7CiAgICBwbWF4LnB1c2goMSk7CiAgICBjb3V0IDw8IChwbWF4LnNpemUoKSAtIHBtaW4uc2l6ZSgpKSA8PCBlbmRsOwogICAgaW50IGRpZmYgPSBwbWF4LnNpemUoKSAtIHBtaW4uc2l6ZSgpOwogICAgY291dCA8PCBkaWZmIDw8ZW5kbDsKICAgIHJldHVybiAwIDsKfQo=