program q; var x, y: real;begin read(x, y); x := sqr(x); y := sqr(y); if (x + 9 * y <= 9) or (9 * x + y <= 9) then write('YES') else write('NO')end.