'''
Write a function to print a dictionary with the keys in sorted order along with the
frequency of each word. Format of the printing should be one key per line and separate
the key and frequency with a SPACE - SPACE.
'''
def print_dictionary(dictionary):
    '''
    Function to print dict
    '''
    #list_1 = []
    x_1 = sorted(dictionary)
    #print(x)
    #print(dictionary)
    for i_1 in x_1:
    #for i in dictionary:
        print(i_1, '-', dictionary[i_1])

def main():
    '''
    Main function
    '''
    dictionary = eval(input())
    print_dictionary(dictionary)

if __name__ == '__main__':
    main()
