import sys n = int(input()) s = input() ls = [] for i in s: if i in ls: print("No") sys.exit() ls.append(i) print("Yes")