#include using namespace std; int main(){ int n; int *s; int cnt = 0; cin >> n; s = new int[n]; for(int i = 0; i < n; ++i){ cin >> s[i]; } for(int i = 1; i < n; ++i){ if(s[i] < s[0]) ++cnt; } cout << cnt << endl; return 0; }