fork download
  1. while 1:
  2. try:
  3. _=raw_input().replace(' ',' . ').split()
  4. print' '.join(_[0][a]+_[a+1]for a in range(len(_[0]))).replace('.','')if len(_)>1else _[0]
  5. except:break
Success #stdin #stdout 0.02s 7252KB
stdin
AMK LA A OTA
BIL OLEK       OLEK
EWWLPRK NIGMA  ERSJI IGHT O AZ OLEJNY
ABC    
A
stdout
ALA MA KOTA
BOLEK I L
ENIGMA W WERSJI LIGHT PO RAZ KOLEJNY