#include<bits/stdc++.h>
using namespace std;
int len,a[30];
string str;
int main()
{
cin>>len>>str;
for(int i=0; i<len; i++)
a[str[i]-'a']++;
if(len==1||a[max_element(a,a+30)-a]>=2)
cout<<"Yes"<<endl;
else
cout<<"No"<<endl;
return 0;
}