n = int(input())
s = input()
alph = 'abcdefghijklmnopqrstuvwxyz'
d = dict(zip(list(alph), list(range(26))))

s = [d[i] for i in s]
if alph == list(sorted(alph)):
    print('NO')
else:
    print('YES')