/* -*- coding: utf-8 -*- * * 1556.cc: No.1556 Power Equality - yukicoder */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; /* constant */ /* typedef */ /* global variables */ /* subroutines */ /* main */ int main() { int a, b; scanf("%d%d", &a, &b); if (a > b) swap(a, b); if (a == b || (a == 2 && b == 4)) puts("Yes"); else puts("No"); return 0; }