def fun(cc): flg = False s = set() for c in cc: if c in s: flg = True s |= {c} return "Yes" if flg else "No" _ = input() print(fun(input()))