# reducer
#!/usr/bin/env python
import sys
import string

last_country = None
cur_index = "-"

for line in sys.stdin:
    line = line.strip()
    country, corruption_perceptions_index, score = line.split("\t")

    if not last_country or last_country != country:
        last_country = country
        cur_index = corruption_perceptions_index
    elif country == last_country:
        index = cur_index
    print('%s\t%s' % (corruption_perceptions_index, score))

3d168020875485842fe17c25a8ea53ed71fc09c6
<mask token>

<mask token>
for line in sys.stdin:
    line = line.strip()
    country, corruption_perceptions_index, score = line.split('\t')
    if not last_country or last_country != country:
        last_country = country
        cur_index = corruption_perceptions_index
    elif country == last_country:
        index = cur_index
    print('%s\t%s' % (corruption_perceptions_index, score))

<mask token>
last_country = None
cur_index = '-'
for line in sys.stdin:
    line = line.strip()
    country, corruption_perceptions_index, score = line.split('\t')
    if not last_country or last_country != country:
        last_country = country
        cur_index = corruption_perceptions_index
    elif country == last_country:
        index = cur_index
    print('%s\t%s' % (corruption_perceptions_index, score))

import sys
import string
last_country = None
cur_index = '-'
for line in sys.stdin:
    line = line.strip()
    country, corruption_perceptions_index, score = line.split('\t')
    if not last_country or last_country != country:
        last_country = country
        cur_index = corruption_perceptions_index
    elif country == last_country:
        index = cur_index
    print('%s\t%s' % (corruption_perceptions_index, score))

# reducer
#!/usr/bin/env python
import sys
import string

last_country = None
cur_index = "-"

for line in sys.stdin:
    line = line.strip()
    country, corruption_perceptions_index, score = line.split("\t")

    if not last_country or last_country != country:
        last_country = country
        cur_index = corruption_perceptions_index
    elif country == last_country:
        index = cur_index
    print('%s\t%s' % (corruption_perceptions_index, score))
