from collections import Counterinputs = 'URLDFLDLFUBBDUBLRtroooooool'print(max('UDLRFB', key=Counter(inputs).get))
Standard input is empty
L
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!