#include using namespace std; int main(void) { int N, user = 0, enemy = 0; int a[100]; int b[100]; cin >> N; for (int i = 0; i < N; i++) { cin >> a[i]; } for (int i = 0; i < N; i++) { cin >> b[i]; } for (int i = 0; i < N; i++) { if (b[i] == 0) { user += a[i]; continue; } enemy += b[i]; } if (user >= enemy) { cout << "YES"; } else { cout << "NO"; } return 0; }