ah yes, the hardest part of any HackerRank challenge - reading from some weird version of stdin.
do I know how to read from stdin in R? nope, because I've literally never had to do that.