@@ -0,0 +1,512 @@
+line = input().split()%0A%0Asize = %5B0 for num in range(len(line))%5D%0A%0Afor index, word in enumerate(line):%0A  for word2 in line:%0A    if word != word2:%0A      ac = True%0A      for letter in word:%0A        if letter not in word2:%0A          ac = False%0A          %0A      for let in word2:%0A        if let not in word:%0A          ac = False%0A          %0A      if ac:%0A        size%5Bindex%5D += 1%0A        %0A        %0Ahigh = max(size)%0Aout = %5B%5D%0Afor dex, entry in enumerate(size):%0A  if entry == high:%0A    out.append(line%5Bdex%5D)%0A    %0Aprint(out)%0A

Create p16f7.py