func main() var x: int :: cui@inputInt() var y: int :: cui@inputInt() const kMax: int :: 100 var p: int :: x.abs() + y.abs() * 10 if(p >= kMax) do cui@print("NO\n") ret end if var pos: []bool :: #[kMax]bool do pos[0] :: true for(1, 3) var posPre: []bool :: ##pos for i(0, kMax - 1) if(posPre[i]) var xx: int :: i % 10 var yy: int :: i / 10 var dx: []int :: [2, 2, 1, 1, -1, -1, -2, -2] var dy: []int :: [1, -1, 2, -2, 2, -2, 1, -1] for j(0, 7) do pos[(xx + dx[j]).abs() + (yy + dy[j]).abs() * 10] :: true end for end if end for end for var ans: bool :: pos[p] do cui@print(ans ?("YES\n", "NO\n")) end func