import sys;a=list(sys.stdin) for l in a: for i in range(99): if ('\n'+''.join(a)).count("\n"+l[:i])<2:print(l[:i]);break
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page