#include #include using namespace std; #define MAIN main #define TYPE_OF( VAR ) decay_t #define CEXPR( LL , BOUND , VALUE ) constexpr LL BOUND = VALUE #define CIN( LL , A ) LL A; cin >> A #define ASSERT( A , MIN , MAX ) assert( MIN <= A && A <= MAX ) #define CIN_ASSERT( A , MIN , MAX ) CIN( TYPE_OF( MAX ) , A ); ASSERT( A , MIN , MAX ) #define QUIT return 0 #define COUT( ANSWER ) cout << ANSWER << "\n" #define RETURN( ANSWER ) COUT( ( ANSWER ) ); QUIT int MAIN() { CEXPR( int , bound , 1000000000 ); CIN_ASSERT( A , 0 , bound ); CIN_ASSERT( B , 0 , bound ); int power = 1; while( A >= power ){ if( ( A / power ) % 2 > ( B / power ) % 2 ){ RETURN( "No" ); } power *= 2; } RETURN( "Yes" ); }