from collections import Counter def main(): a = input().split() c = Counter(a) print(c) print(c.values()) # if == 3 and == 2: # print("FULL HOUSE") # elif : # print("THREE CARD") # elif : # print("TWO PAIR") # elif : # print("ONE PAIR") # else: # print("NO HAND") if __name__ == '__main__': main()