代码实现:
#include<iostream>
using namespace std;
int main() {
int n, m;
while (cin >> n >> m && !(n == 0 && m == 0)) {
if ((n * m) % 8 == 0 && n != 1 && m != 1) cout << "YES" << endl;
else cout << "NO" << endl;
}
return 0;
}