print(io.read("*n") % 2 == 0 and "YES" or "NO")