L=map(raw_input,[""]*100) for l in L:print[l[:i]for i in range(20)if`L`.count(`l`[:i])>1][-1]
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page