#include using namespace std; signed main(){ int N; cin >> N; vector< int > A( N ), B( N ); for( int i = 0; i < N; ++i ) cin >> A[ i ]; for( int i = 0; i < N; ++i ) cin >> B[ i ]; int sum = 0; for( int i = 0; i < N; ++i ) sum += ( B[ i ] == 0 ? 1 : -1 ) * A[ i ]; if( sum >= 0 ) cout << "YES" << endl; else cout << "NO" << endl; return 0; }