#include #include using namespace std; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); uint16_t N, i, A[100], B, ans = 0; cin >> N; for (i = 0; i != N; ++i) cin >> A[i]; for (i = 0; i != N; ++i) { cin >> B; if (B >= A[i]) ++ans; } cout << ans << '\n'; return 0; }