let n = readLine()!.split(separator: " ").map{Int($0)!} print((n[0] * n[1] * n[2]) % 3 == 0 ? "Yes" : "No")