let n = Int(readLine()!)! print([90,270].contains(n % 360) ? "Yes" : "no")