<s> import csv <EOL> import data_io <EOL> def main ( ) : <EOL> submission_path = data_io . get_paths ( ) [ "<STR_LIT>" ] <EOL> reader = csv . reader ( open ( submission_path ) ) <EOL> reader . next ( ) <EOL> recommendations = [ ( int ( row [ <NUM_LIT:0> ] ) , int ( row [ <NUM_LIT:1> ] ) , - i ) <EOL> for i , row in enumerate ( reader ) ] <EOL> out_path = submission_path [ : - <NUM_LIT:4> ] + "<STR_LIT>" <EOL> data_io . write_submission ( recommendations , submission_path = out_path ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> main ( ) </s>
