user_string = input().lower().split(' ')
count_word = {}
for word in user_string:
    if word in count_word:
        count_word[word] += 1
    else:
        count_word[word] = 1
        
for key,value in count_word.items():
    print(key, value)
modify this using dictionary comprehension