#include using namespace std; using ll = long long; bool chmax(auto &a, auto b) { return a < b ? a = b, 1 : 0; } bool chmin(auto &a, auto b) { return a > b ? a = b, 1 : 0; } int main() { cin.tie(nullptr); ios::sync_with_stdio(false); // one = 2m && another = 3n => ok // but direction <= ??? looks wrong int A[3]; for (int i = 0; i < 3; ++i) cin >> A[i]; sort(A, A+3); do { if (A[0] % 2 == 0 && A[1] % 3 == 0) { cout << "Yes\n"; return 0; } } while (next_permutation(A, A+3)); cout << "No\n"; }