#include using namespace std; int main() { int n, a1st, a, ans = 0; cin >> n >> a1st; for(int i = 1; i < n; i++){ cin >> a; if(a < a1st) ++ans; } cout << ans << endl; return 0; }