Add #54 input file and Ruby solution