<s> import sys , string <EOL> input = sys . stdin . readlines ( ) <EOL> for line in input : <EOL> names = line . split ( '<STR_LIT>' ) <EOL> journal = names [ <NUM_LIT:0> ] . strip ( ) <EOL> try : <EOL> info = names [ <NUM_LIT:1> ] . split ( '<STR_LIT:)>' ) <EOL> abbrev = info [ <NUM_LIT:0> ] . strip ( ) <EOL> except : <EOL> abbrev = journal <EOL> print "<STR_LIT>" % ( abbrev , journal ) </s>
