<s> import json <EOL> import sys <EOL> episode_id = <NUM_LIT:0> <EOL> for line in sys . stdin : <EOL> episode = json . loads ( line ) <EOL> rewards = [ event [ '<STR_LIT>' ] for event in episode ] <EOL> print "<STR_LIT:\t>" . join ( map ( str , [ episode_id , len ( episode ) , sum ( rewards ) ] ) ) <EOL> episode_id += <NUM_LIT:1> </s>
