I would like to solve the challenge. The language of my preference is R. I am not sure how to receive input. On hackerrank coding window it says that
\"# En
Look at the "warmup".
data <- suppressWarnings(read.table("stdin", sep=" "));
Alternatively you can use
data <- suppressWarnings(readLines(file("stdin")))
Also Refer this page in hackerrank