input() s = list(input()) print("No" if len(s) == len(set(s)) else "Yes")