str = "imp unimp"print str[0:str.index(" ")]
Standard input is empty
imp
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!