#include #include #include #include using namespace std; #define ll long long ll B,C,D; ll N; vectorE; ll judge(ll b, ll c, ll d){ if(((b>=B)&&(c>=C))&&(d>=D)){ return 1; } return 0; } ll pl(ll i){ if(i<=0) return 1; else return pow(2,i); } int main(){ ll inp; ll compare,count; ll result =0; ll outp; cin >> B >> C >> D; cin >> N; for(ll i =0;i>inp; E.push_back(inp); } sort(E.begin(),E.end()); if(N<3){ cout << "0" << endl; return 0; } for(ll i =0;i