Help with R-language code

This R-language code does not work in the ide.
How do I request user input correctly on the “CodeCheff” platform?

a <- as.integer(readline())
b <- as.integer(readline())
c <- (sum(a,b))
cat(“SUM =”, c)