import std.stdio, std.conv, std.math, std.string, std.range, std.array, std.algorithm; void main(){ auto buf = readln().strip().split().map!(to!int)(); immutable N = buf[0]; immutable M = buf[1]; if(N==1 || M==1) { if(N+M==3) { writeln("YES"); } else { writeln("NO"); } } else { if(N%2==0 || M%2==0) { writeln("YES"); } else { writeln("NO"); } } }