input <- file('stdin', 'r')

a <- as.integer(readLines(input, n=1))
b <- as.integer(readLines(input, n=1))

soma = a + b

write(paste("X =", soma), '')

Solve Extremely Basic in r
Solve Extremely Basic in r
