balloons = {} for line in range(3): line = input() balloons.setdefault(line,0) balloons[line]+=1 pop_color,_ = max(balloons.items(),key=lambda x:x[1]) del _ print(pop_color)