import sys
import csv

my_file = sys.stdin
a = dict(sorted(csv.reader(my_file), key=lambda x: x[1]))

print(a)