Panic is rising in the committee for doggo standardization — the puppies of the new brood have been born multi-colored! In total there are 26 possible colors of puppies in the nature and they are denoted by letters from 'a' to 'z' inclusive.The committee rules strictly prohibit even the smallest diversity between doggos and hence all the puppies should be of the same color. Thus Slava, the committee employee, has been assigned the task to recolor some puppies into other colors in order to eliminate the difference and make all the puppies have one common color.Unfortunately, due to bureaucratic reasons and restricted budget, there's only one operation Slava can perform: he can choose a color $$$x$$$ such that there are currently at least two puppies of color $$$x$$$ and recolor all puppies of the color $$$x$$$ into some arbitrary color $$$y$$$. Luckily, this operation can be applied multiple times (including zero).For example, if the number of puppies is $$$7$$$ and their colors are represented as the string "abababc", then in one operation Slava can get the results "zbzbzbc", "bbbbbbc", "aaaaaac", "acacacc" and others. However, if the current color sequence is "abababc", then he can't choose $$$x$$$='c' right now, because currently only one puppy has the color 'c'.Help Slava and the committee determine whether it is possible to standardize all the puppies, i.e. after Slava's operations all the puppies should have the same color.

The first line contains a single integer $$$n$$$ ($$$1 \le n \le 10^5$$$) — the number of puppies. The second line contains a string $$$s$$$ of length $$$n$$$ consisting of lowercase Latin letters, where the $$$i$$$-th symbol denotes the $$$i$$$-th puppy's color.

If it's possible to recolor all puppies into one color, print "Yes". Otherwise print "No". Output the answer without quotation signs.

NoteIn the first example Slava can perform the following steps:   take all puppies of color 'a' (a total of two) and recolor them into 'b';  take all puppies of color 'd' (a total of two) and recolor them into 'c';  take all puppies of color 'b' (three puppies for now) and recolor them into 'c'. In the second example it's impossible to recolor any of the puppies.In the third example all the puppies' colors are the same; thus there's no need to recolor anything.

#include<stdio.h>

int main()

{
    int n,i,j,p=0,count=0;
    char a[100005];

    scanf("%d",&n);

    scanf("%s",&a);

    for(i=0;i<n;i++)
      {

        for(j=i+1;j<n;j++)
        {

         if(a[i]==a[j])
         {
         count++;
         break;
         }
        }

      }

   if(count>=1 || n==1)
       printf("YES");

    else
       printf("NO");

       return 0;
}

#include<stdio.h>
void mergesort(char arr[], int l, int r)
{
if (l < r)
{
int m = l+(r-l)/2;
mergesort(arr, l, m);
mergesort(arr, m+1,r);
merge(arr, l, m, r);
}
}
void merge(char arr[], int l, int m, int r)
{
int i, j, k;
int n1 = m - l + 1;
int n2 = r - m;
char L[1+n1], R[1+n2];
for (i = 0; i < n1; i++)
L[i] = arr[l + i];
for (j = 0; j < n2; j++)
R[j] = arr[m + 1+ j];
i = 0;
j = 0;
k = l;
while (i < n1 && j < n2)
{
if (L[i] <= R[j])
{
arr[k] = L[i];
i++;
}
else
{
arr[k] = R[j];
j++;
}
k++;
}
while (i < n1)
{
arr[k] = L[i];
i++;
k++;
}
while (j < n2)
{
arr[k] = R[j];
j++;
k++;
}
}
int main()
{
    int n,f=0,count=1;
    scanf("%d",&n);
    char s[n+1];
    scanf("%s",s);
    s[n]='\0';
    if(n==1)
    printf("%s","YES");
    else
    {
    mergesort(s,0,n-1);
    for(int i=0;i<n;i++)
    {
    if(s[i]==s[i+1])
    {
    count++;
    if(count==2)
    {
    f=1;
    break;
    }
    }
    else
    count=1;
    }
    if(f==1)
    printf("%s","YES");
    else
    printf("%s","NO");
    }
    return 0;
}

#include<stdio.h>
#include<string.h>
#include<stdlib.h>
int main()
{
    char a[100005],temp;
    int i,j,m=1,k,n;
    scanf("%d",&n);
    scanf("%s",&a);
    if(n==1 || n==100000) printf("Yes");
    else{
     for(i=0; i<strlen(a); i++){
        for(j=i; j<strlen(a); j++){
            if(a[i]>a[j]){
                temp=a[j];
                a[j]=a[i];
                a[i]=temp;
            }
        }
    }
    for(i=1; i<strlen(a); i++){
        if(a[i]==a[i-1])
            {m++;
            if(m>1)
                break;}
        else m=1;
    }
    if(m==1) printf("No");
    else printf("Yes");
    }
}

#include<stdio.h>

int main()
{
    int i;
    scanf("%d",&i); /**ȡ����i*/
    getchar();
    int flag=0;
    char c;
    int x,y;
    int array[26];
    for(x=0; x<26; x++){
        array[x]=0;
    }
    for(x=0; x<i; x++){
        c=getchar();
        y=c-'a';
        array[y]++;
    }

    if(i==1) printf("Yes");
    else    {
        for(x=0; x<26; x++){
            if(array[x]>1)  {flag=1; break;}
        }
        if(flag)    printf("Yes");
        else        printf("No");
    }
    return 0;

}

#include<stdio.h>
int main(void)
{
    int max=0,i,n,freq[26]={0};
    scanf("%d",&n);
    char string[n+2];
    scanf("%s",string);
    for(i=0;string[i]!='\0';i++)
    {
        freq[string[i]-97]++;
        max=max<freq[string[i]-97]?freq[string[i]-97]:max;
    }
    if(max>1||strlen(string)==1)
        printf("%s\n","Yes");
    else
        printf("%s\n","No");
    return 0;
}

#include <stdio.h>
#include <string.h>

int main(){
	int n;
	scanf("%d", &n);
	char word[100006];

	scanf("%s",word);
//	for(int i=0; i<n; i++){
//		scanf("%c", &word[i]);
//	}

	int alpha[100] = {0};

	int length = strlen(word);
	for(int i=0; i<length; i++){
		alpha[word[i]-'a']++;
	}

	int cek = 0;
	if(n == 1){
		printf("YES");
	} else{
		for(int i = 0;i < 26;i++){
			if(alpha[i] > 1){
				cek = 1;
			}
		}
		if(cek == 1){
			printf("YES");
		} else{
			printf("NO");
	}
	}

	return 0;
}

#include <stdio.h>
#include <string.h>
int n;
int vis[205];
char str[100005];

int main()
{
  scanf("%d%s",&n,str);
  if(n == 1){
    puts("Yes");
    return 0;
  }
  memset(vis,0,sizeof(vis));
  int ans = 0;
  int num = 0;
  for(int i=0;i<n;i++)
  {
    vis[str[i]]++;
  }
  for(int i=0;i<26;i++)
  {
    if(vis['a'+ i] >= 2)num++;
  }
  if(num != 0)
    puts("Yes");
  else
    puts("No");
  return 0;
}

#include <stdio.h>
#define SZ 1000006

char in[SZ];
char c[256];

int main(){
    size_t x = fread(in, 1, SZ, stdin);
    if(in[0]=='1' && in[1]=='\n'){
        fwrite("Yes\n", 4, 1, stdout);
        return 0;
    }
    for(size_t i = 0;i<x;++i){
        if(!('a'<=in[i] && in[i]<='z')) continue;
        if(c[in[i]]){
            fwrite("Yes\n", 4, 1, stdout);
            return 0;
        }
        c[in[i]] = 1;
    }
    fwrite("No\n", 3, 1, stdout);
}

#include<stdio.h>
int main()
{
    int n,i,j,c=0;
    char a[100001];
    scanf("%d%s",&n,a);
    if(n==1)
    {
        printf("Yes\n");
        return 0;
    }
    for(i=0; i<n-1; i++)
    {
        for(j=i+1; j<n; j++)
            if(a[i]==a[j])
            {
                c++;
                break;
            }
        if(c)
            break;
    }
    if(c)
        printf("Yes\n");
    else
        printf("No\n");
    return 0;
}

#include <stdio.h>

int main()
{
	int num, count=0;
	scanf("%d", &num);
	char str[num+1];
	scanf("%s", str);
	if(num==1) {
		printf("Yes");
		return 0;
	}
	int res=0;
	for (int i=0; i<num; i++)
	{
		for (int k=i+1; k<num; k++)
		{
			if ((int)str[i]==(int)str[k])
			{
				res++;
				break;
			}
		}
		if(res) break;
	}
	if (res)
	{
		printf("Yes");
	}

	else
	{
		printf("No");
	}

	return 0;
}

#include<stdio.h>
#include<string.h>

int x=0;
int slot(char a[],int size){
    int temp;
    for(int i=0;i<size;i++){
        for(int j=0;j<size-1;j++){
                if(a[j]==a[j+1]){
                    x=1;
                    break;
                }
            if(a[j]>a[j+1]){
                temp=a[j];
                a[j]=a[j+1];
                a[j+1]=temp;
            }
        }
    }

}
int main()
{
    unsigned long long n;
    scanf("%llu",&n);
    char arr[n+1];
    scanf("%s",arr);
    if(strlen(arr)==1){
        printf("YES");
        return 0;
    }
    slot(arr,strlen(arr));
    if(x==1){
        printf("YES");
    }
    else{
        printf("NO");

    }
}

#include <stdio.h>
const int M = 100001;
const int A = 26;
int main(){
    int n,i,a[A],c=0; for(i=0;i<A;i++) a[i]=0; char s[M];
    scanf("%i\n%s",&n,s);
    for(i=0;i<n;i++) a[s[i]-'a']++;
    for(i=0;i<A;i++) if(a[i]>1) c++;

    if(c>0 || n==1)
        printf("YES");
    else
        printf("NO");
    return 0-0-0;
}

#include<stdio.h>
#include<string.h>
char c[100005];
int main()
{
    int a,i=0,j,k=0;
    scanf("%d",&a);
    scanf("%s",c);
    if(a>1)
    {
        if(a<27){
        for(i=0;i<a;i++)
        {
            for(j=i+1;j<a;j++)
            {
                if(c[i]==c[j]){
                    k=1;
                    break;}
            }
            if(k==1)
                break;

        }
        if(k==1)
            printf("Yes");
        else
            printf("No");
    }
    else
        printf("Yes");
    }
    if(a==1)
        printf("Yes");

}

#include<stdio.h>
#include<string.h>

int main()
{
  char temp;
  int i,j,n,count=1;
  scanf("%d",&n);
  char str[n+6];
  scanf("%s",str);
  if(n==1 || n>26){
    printf("Yes\n");
    return 0;
  }

  for(i=0;i<n-1;i++)
  {
      for(j=0;j<n-1;j++)
      {
         if(str[j]<str[j+1])
         {

            temp=str[j];
                str[j]=str[j+1];
                str[j+1]=temp;
         }
      }

  }

 for(i=0;i<n-1;i++)
 {
     if(str[i]!=str[i+1])
        count++;
 }
 if(n==count)printf("No\n");
 else printf("Yes\n");

}

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main()
{
   char ch, input[100000], output[100000];
   int no[26] = {0}, n, c, t, x,k=0,i,j;
  scanf("%d",&n);
   scanf("%s", input);
   for(i=97;i<=122;i++)
   {
       for(j=0;j<n;j++)
       {
           if(input[j]==i)
           {
               k++;
               break;
           }
       }
   }
   for (c = 0; c < n; c++)
   {
      ch = input[c] - 'a';
      no[ch]++;
   }
   t = 0;
   for (ch = 'a'; ch <= 'z'; ch++)
   {
      x = ch - 'a';

      for (c = 0; c < no[x]; c++)
      {
         output[t] = ch;
         t++;
      }
   }
   output[t] = '\0';
   if(n>k && n!=1)
   {
       printf("YES");
   }
   if(n==k && n!=1)
   {
       printf("NO");
   }
   if(n==1)
   {
       printf("YES");
   }
   return 0;
}

#include <stdio.h>
long long int max(long long int a,long long int b){
    if(a>b){
        return a;
    }
    return b;
}
int main()
{
   long long int i,j,test,k,m,flag=0,max=0,n,m1,m2;
   char a[1000001],b[1000001];

    long long int o1=0,o2=0,z1=0,z[26]={0},count=0;
    scanf("%lld%s",&n,a);
     for(i=0;i<n;i++){
         z[a[i]-'a']++;
     }
     flag=0;
    for(i=0;i<26;i++){
        if(z[i]>1){
            flag=1;
            break;
        }
    }
    if(flag==1 || n==1){
        printf("YES\n");
    }else{
        printf("NO\n");
    }

    return 0;
}

#include <stdio.h>

int main()

{
    int lotus[200] ;

    for( int pp = 0 ; pp < 200 ; pp++ ) lotus[pp] = 0 ;

    int n ;

    scanf("%d",&n) ;

    if(n==1)  {

        printf("yes\n") ;

        return 0 ;

    }

    char ch = getchar() ;

   // int x = 'c' ; printf("%d\n",x);

    char ara[n] ;

    scanf("%s",ara) ; char dd = getchar() ;

    int a , b  ;

    for( a = 0 ; ara[a] != '\0' ; a++ )  {

        b = ara[a] ;

       // printf("%d\n",b) ;

        lotus[b] += 1  ;

    }

    int c , flag = 0 ;
    int man = 1 ;
    for(  c = 97 ; c <= 122 ; c++ )  {

        if( lotus[c] > 1 )  {
            //printf("%d %d\n",c,lotus[c]) ;
            flag = 1 ; break ;

        }

    }

    if(flag)
    printf("yes\n") ;

else  printf("no\n") ;

    return 0 ;

}

#include<stdio.h>
int main(){
    int n;
    scanf("%d",&n);
    char s[n+1];
    scanf("%s",s);
    if(n==1){
        printf("Yes");
        return 0;
    }
    int i,alpha[26]={0,},res=0;
    for(i=0;i<n;i++){
        alpha[s[i]-'a']++;
        if(alpha[s[i]-'a']==2) res=1;
    }
    if(res) printf("Yes");

    else printf("No");
}

#include <stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
int main()
{
#ifndef ONLINE_JUDGE
	freopen("input.txt", "r", stdin);
	freopen("output.txt", "w", stdout);
#endif

	long long int n, p = 0,z;
	scanf("%lld ", &n);
	char a[100000];
	gets(a);
	z=strlen(a);
	//printf("%lld\n",z );
	if (strlen(a) > 1)
	{
		for (long long int i = 0; i < n; ++i)
		{
			for (long long int j = 0; j < n; ++j)
			{
				if (a[i] == a[j] && i != j)
				{
					p++;
					//printf("%lld\n",p );
					break;
				}
			}
			if (p>0)
				break;
		}
		if (p>0)
			printf("YES\n");
		if(p==0)
			printf("NO\n");
	}
	if(strlen(a)==1)
		printf("YES\n");

}

#if 01

#include<stdio.h>

#define MAX (26)

int n;
int alphabet[MAX];
char str[100000 + 1];

int main(void){

	char *msg[2] = { "No", "Yes" };
	scanf("%d", &n);
	if (n == 1){
		printf("%s", msg[1]); return 0;
	}
	scanf("%s", str);

	for (int i = 0; i < n; i++){
		alphabet[str[i] - 'a']++;
	}
	for (int i = 0; i < MAX; i++){
		if (alphabet[i] > 1){
			printf("%s", msg[1]); return 0;
		}
	}
	printf("%s", msg[0]);
	return 0;
}

#endif

#include<stdio.h>
int main()
{
    int a,i,j,l;
    scanf("%d",&a);
    char s[a+3];
    scanf("%s",s);
    if(a==1) printf("Yes\n");
    else{
        int ar[27];
        memset(ar,0,sizeof(ar));
        for(i=0;i<a;i++){
            ar[s[i]-97]++;
            if(ar[s[i]-97]==2){
                printf("Yes\n");
                return 0;
            }
        }
        printf("No\n");
    }
    return 0;
}

#include<stdio.h>
#include<string.h>

char str[100010];
int a[200];
int main()
{

	int n;
	while (scanf("%d", &n) != EOF)
	{
		getchar();
		memset(a, 0, sizeof(a));
		for (int i = 0; i < n; i++)
		{
			char m = 0;
			scanf("%c", &m);
			a[m - '0']++;
		}
		int sum1 = 0, sum2 = 0;
		for (int i = 0; i < 200; i++)
		{
			if (a[i] >= 2)
			{
				sum2++;
			}
			else
			{
				if (a[i] == 1)
				{
					sum1++;
				}
			}
		}
		if (sum2||n==1)
		{
			printf("Yes\n");
		}
		else
		{
			printf("No\n");
		}
	}
	return 0;

}

#include<stdio.h>

int main()
{
    int n,a[26]={0},count=0;
    char ch[100000];
    scanf("%d %s",&n,ch);
    int i;
    if(n==1){
        printf("Yes\n");
        return 0;
    }
    for(i=0; i<n; i++){
        switch(ch[i]){
            case 'a': a[0]++;count++;break;
            case 'b': a[1]++;break;
            case 'c': a[2]++;break;
            case 'd': a[3]++;break;
            case 'e': a[4]++;break;
            case 'f': a[5]++;break;
            case 'g': a[6]++;break;
            case 'h': a[7]++;break;
            case 'i': a[8]++;break;
            case 'j': a[9]++;break;
            case 'k': a[10]++;break;
            case 'l': a[11]++;break;
            case 'm': a[12]++;break;
            case 'n': a[13]++;break;
            case 'o': a[14]++;break;
            case 'p': a[15]++;break;
            case 'q': a[16]++;break;
            case 'r': a[17]++;break;
            case 's': a[18]++;break;
            case 't': a[19]++;break;
            case 'u': a[20]++;break;
            case 'v': a[21]++;break;
            case 'w': a[22]++;break;
            case 'x': a[23]++;break;
            case 'y': a[24]++;break;
            case 'z': a[25]++;break;
        }
    }
    for(i=0; i<26; i++){
        if(a[i]>=2){
            printf("Yes\n");
            return 0;
        }
    }
    printf("No\n");
    return 0;
}

#include<stdio.h>
#include<string.h>

char s[100005];
int num[30];
int main(){
	int n;
	scanf("%d", &n);
	scanf("%s", s);

	for(int i = 0; i < n; i++){
		num[s[i]-'a']++;
	}

	for(int i = 0; i < 27; i++){
		if(num[i] >= 2 || n == 1){
			printf("YES");
			return 0;
		}
	}

	printf("NO");
	return 0;
}

#include<stdio.h>
#include<stdlib.h>
long int ndogs;
char colors[100000];
char test(char* arr)
{
	int i = 0;
	int j = 0;
	for (i = 0; i <= ndogs; i++)
	{
		for (j = i + 1; j <= ndogs; j++)
		{
			if (arr[i] == arr[j])
			{
				return 1;
			}
		}
	}
	return 0;
}
int main(void)
{
	scanf("%d", &ndogs);
	scanf("%s", colors);
	if (ndogs==1)
    {
        printf("Yes");
    }

	else if (test(colors))
		printf("Yes");
	else printf("No");
	return 0;
}

#include<stdio.h>
#include<string.h>
#include<stdlib.h>
int main(){
int l;
scanf("%d",&l);
if(l>26){printf("YES");return 0;}
char s[l];
int evens=0;
int a[27];
memset(a,0,sizeof(int)*27);
scanf("%s",s);
for(int i=0;i<l;i++){
	a[s[i]-97] += 1;
	if(a[s[i]-97]>=2){evens++;}
	if(evens>0){break;}
}
if(evens>0 || l==1){
printf("YES");
}else{printf("NO");}
return 0;
}

#include<stdio.h>
#define N 100001
int main(){
    int n;
    scanf("%d",&n);
    char s[N];
    scanf("%s",s);
    int count[27];
    int i;
    for(i=0;i<27;i++){
        count[i]=0;
    }
    for(i=0;i<n;i++){
        count[s[i]-'a']++;
    }
    int yes=0;
    for(i=0;i<27;i++){
        if(count[i]>1){
            yes=1;
            break;
        }
    }
    if(n==1){
        printf("Yes\n");
    }else if(yes){
        printf("Yes\n");
    }else{
        printf("No\n");
    }

    return 0;
}

#include<stdio.h>
#include<string.h>
int possible(char *str,int n)
{
    int i,j;
    for(i=0;i<n;i++){
        for(j=i+1;j<n;j++){
            if(str[i]==str[j]) return 1;
        }
    }
    return 0;
}
int main()
{
    int n;
    scanf("%d",&n);
    char str[n];
    getchar();
    gets(str);
    if(n==1) printf("Yes");
    else if(possible(str,n)==1) printf("Yes");
    else printf("No");
    return 0;
}

#include <stdio.h>
#include <string.h>

int main(){

	int fre[26];
	int i;
	for(i=0;i<26;i++){
		fre[i]=0;
	}
	int n;
	scanf("%d",&n);
	char en[n+5];
	gets(en);
	gets(en);
	if(n==1){
		printf("Yes\n");
	}
	else{
		for(i=0;i<n;i++){
			if(fre[en[i]-'a']){
				printf("Yes\n");
				break;
			}
			fre[en[i]-'a']++;
		}
		if(i==n){
			printf("No\n");
		}
	}

	return 0;
}

#include<stdio.h>
#include<stdlib.h>
long int ndogs;
char colors[100000];
char letters[26];
char test(char* arr)
{
	for (int i = 0; i <= ndogs; i++)
	{
		arr[i] -= 'a';
		if (letters[arr[i]])
			return 1;
		letters[arr[i]] = 1;
	}
	return 0;
}
int main(void)
{
	scanf("%d", &ndogs);
	scanf("%s", colors);
	if ( ndogs==1) printf("Yes");
	else if (test(colors)) printf("Yes");
	else printf("No");
	//getch();
	return 0;
}

#include<stdio.h>
#define inf 99999999999999

int main()
{
  long long int n;
  scanf("%lld",&n);
char  a[n];

scanf("%s",a);
//printf("%c",a[n-1]);
long long int temp;
long long int f[26];

for(int i=0;i<26;i++)
{
  f[i]=inf;
}
int fl=0;

if(n==1)
{
  printf("yes\n");
  return 0;
}
for(int i=0;i<n;i++)
{
  temp=a[i]-97;
  if(f[temp]==inf) f[temp]=0;
  f[temp]=f[temp]+1;
  if(f[temp]==2)
  {
    printf("Yes\n");
    return 0;
  }
}

printf("No\n");

}

#include <stdio.h>
#include<string.h>
#include<stdlib.h>
#include<math.h>
int compre( void *a, void *b){
    return strlen(a)-strlen(b);
}

int main(void){

long long int test,i,j,n,count,flag=0,o1=0,o2=0,b1,l,p,i1,i2,m,u,r,q,d,x,max,max2,min,f,sum1,sum,b,c[26]={0};
char a[100000];
scanf("%lld%s",&n,a);
flag=0;
for(i=0;i<strlen(a);i++){
    c[a[i]-97]++;
    if(c[a[i]-97]>=2){
        flag=1;
        break;
    }
}
if(flag==0 && n!=1){
    printf("NO");
}else{
    printf("YES");
}
return 0;
}

#include<stdio.h>
#include<string.h>
#include<stdlib.h>
int main(){
int l;
scanf("%d",&l);
char s[l];
int evens=0;
int a[27];
memset(a,0,sizeof(int)*27);
scanf("%s",s);
for(int i=0;i<l;i++){
	a[s[i]-97] += 1;
	if(a[s[i]-97]>=2){evens++;}
}
if(evens>0 || l==1){
printf("YES");
}else{printf("NO");}
return 0;
}

#include <stdio.h>
#include <string.h>
int main()
{
    int ln, n, i, j;
    char str[1000000];

    scanf("%d%s", &n, str);
    if(n == 1){
        printf("Yes");
        return 0;
    }
    if(n == 0){
        printf("Yes");
        return 0;
    }

    ln = strlen(str);
    for(i = 0; i < ln; i++){
        for(j = i + 1; j < ln; j++){
            if(str[i] == str[j]){
                printf("Yes");
                return 0;
            }
        }
    }
    printf("No");

    return 0;
}

#include<stdio.h>
int main(void)
{
    int max=0,i,n,freq[26]={0};
    scanf("%d",&n);
    char string[n+2];
    scanf("%s",string);
    for(i=0;string[i]!='\0';i++)
    {
        freq[string[i]-97]++;
        max=max<freq[string[i]-97]?freq[string[i]-97]:max;
    }
    if(max>1||strlen(string)==1)
        printf("%s\n","Yes");
    else
        printf("%s\n","No");
    return 0;
}

#include<stdio.h>
#include<string.h>
int main()

{
    int n,k=0,i,j;
    char doggo[100000];

    scanf("%d",&n);
    scanf("%s",doggo);

    if (strlen(doggo)==1)
        printf("Yes\n");
    else if (strlen(doggo)>26)
        printf("Yes\n");

    else
    {
        for (i=0; i<strlen(doggo); i++)
        {
            for (j=0; j<strlen(doggo); j++)
            {
                if (doggo[i]==doggo[j])
                    k++;
            }
        }

    if (k-strlen(doggo)==0)
        printf("No\n");
    else
        printf("Yes\n");
    }

    return 0;
}

#include<stdio.h>
int main()
{
    int a,i,j,l;
    scanf("%d",&a);
    char s[a+3];
    scanf("%s",s);
    if(a==1) printf("Yes\n");
    else{
        int ar[27];
        memset(ar,0,sizeof(ar));
        for(i=0;i<a;i++){
            ar[s[i]-97]++;
            if(ar[s[i]-97]==2){
                printf("Yes\n");
                return 0;
            }
        }
        printf("No\n");
    }
    return 0;
}

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
int main()
{
    int n,i,count[26],flag=0;
    memset(count,0,26*sizeof(int));
    scanf("%d",&n);
    char s[n];
    scanf("%s",s);
    for(i=0;i<n;i++)
    {
        count[s[i]-'a']++;
        if(count[s[i]-'a']>=2)
            flag=1;
    }
    if(n<2)
        printf("Yes");
    else if(flag==1)
        printf("Yes");
    else
        printf("No");
}

#include<stdio.h>

int main()
{
    int i,n,c=0,k=0,j;
    scanf("%d",&n);
    int a[26];
    char str[n];
    scanf("%s",str);
    if(n>1)
    {
  for(j=97,k=0;j<=122;j++,k++)
  {  a[k]=0;
      for(i=0;i<n;i++)
      {
          if(str[i]==j)
            a[k]++;
      }
     if(a[k]>=2)
        c++;
  }
    }
    else
        c=2;
    if(c>0)
        printf("YES\n");
    else
        printf("NO\n");
   return 0;
}

#include<stdio.h>
#include<string.h>
int main()
{
    int i,c=0,n,a[27]={0};
    char s[100005];
     scanf("%d%s",&n,s);
     for(i=0;i<strlen(s);i++){
            a[s[i]-'a']++;
            if(a[s[i]-'a']>1){
                c=1;
                break;}}
    if(c==1 || n==1)
        printf("Yes\n");
    else
        printf("No\n");
    return 0;

}

#include <stdio.h>
#include <string.h>

int main(){
  char a,b;
  long int t, count[26]={0};
  scanf("%d",&t);
  scanf("%c",&b);
  if(t==1)
  {
    scanf("%c",&a);
    printf("Yes\n");
    return 0;
  }
  for(long int i = 0; i < t; i++) {
    scanf("%c",&a);
    count[a-97]++;
    if (count[a-97] > 1) {
      printf("Yes\n",a);
      return 0;
    }
  }
  printf("No\n");
  return 0;
}

#include<stdio.h>

int main()
{

     int n=0,i=0,j=0;
  char str[100000];

	scanf("%d",&n);
printf("");
		scanf("%s",str);
for(i=0;i<n;i++)
	{
		for(j=i+1;j<n;j++)
		{
			if(str[i]==str[j])
			{
				printf("\nYES");
				return 0;
			}
		}
	}
if(n==1)
printf("YES");

else
printf("NO");
return 0;
}

#include<stdio.h>
#include<string.h>
int main(){
	int n,d=0;
	scanf("%d",&n);
	char s[n];
	scanf("%s",s);
	for(int i=0;i<n-1;i++){
		for(int j=i+1;j<n;j++){
			if(s[i]==s[j]){
				d++;
				break;
			}
		}
	}
	if(d > 0 || n==1)
		printf("YES");
	else
		printf("NO");
	return 0;
}

#include <stdio.h>
int main(void) {

	int n;
	scanf("%d",&n);

	char s[n+5];

	scanf("%s",s);

	int i,ctr=0,newc=0;
	int color[26]={0};

	for(i=0;i<n;i++)
	{
	    if(color[s[i]-97]==0)
	    {
	        newc++;
	    }

	    color[s[i]-97]++;

	}

	for(i=0;i<26;i++)
	{
	    if(color[i]==1)
	    {
	        ctr++;
	    }
	}

	if(n==1)
	{
	    ctr=1;
	    newc=0;
	}
	if(ctr==newc)
	    printf("No");
	else
	    printf("Yes");

	return 0;
}

#include<stdio.h>
int main()
{
    int n,i,j,count,f;
    scanf("%d",&n);
    char s[n+1];
    scanf("%s",s);
    for(i=0;i<n-1;i++)
    {
        f=0;
        count=1;
        for(j=i+1;j<n;j++)
            if(s[i]==s[j])
            count++;
        if(count>=2)
        {
            f=1;
            break;
        }
    }
    if(f!=1&&n!=1)
        printf("No\n");
    else printf("Yes\n");
    return 0;
}

#include <stdio.h>

main(){
    int i, tp, flag= 0;
    scanf("%i", &tp);
    char pc[tp+1];
    scanf("%s", pc);
    int n_c[27]= {0};
    if(tp== 1){
        printf("YES");
        return 0;
    }
    for(i=0; i<tp; ++i){
        n_c[pc[i]-'a'+1]++;
    }
    for(i=1; i<27; ++i){
        if(n_c[i]>= 2){
            flag= 1;
        }
    }

    if(flag)
        printf("YES");
    else
        printf("NO");
}

#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>

int main(void)
{
    int l[26];
    for (int i = 0; i < 26; i++)
        l[i] = 0;
    bool ex = 0;
    int n;
    scanf("%d", &n);
    char s[n + 1];
    scanf("%s", s);

    if (n == 1)
        ex = 1;

    while (n--)
        if (++l[s[n] - 97] == 2) {
            ex = 1;
            break;
        }

    if (ex)
        printf("Yes\n");
    else
        printf("No\n");

    return 0;
}

#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>

int cmp(const void *a, const void *b)
{
	return *(int *)a-*(int *)b;
}

int min(int a,int b)
{
	if(a<b)
		return a;
	return b;
}

int max(int a,int b)
{
	if(a>b)
		return a;
	return b;
}

int main()
{
	int n;
	scanf("%d",&n);
	char a[100004];
	scanf("%s",a);
	int i,count[30]={0};
	for(i=0;i<n;i++)
		count[a[i]-'a']++;
	int ans=0;
	if(n==1)
	{
		printf("YES\n");
		return 0;
	}
	for(i=0;i<26;i++)
	{
		if(count[i]>1)
		{
			ans=1;
			break;
		}
	}
	if(ans==0)
		printf("No\n");
	else
		printf("Yes\n");
	return 0;
}

#include <stdio.h>

int main()
{
	int num, count=0;
	scanf("%d", &num);
	char str[num+1];
	scanf("%s", str);
	if(num==1) {
		printf("Yes");
		return 0;
	}
	int res=0;
	for (int i=0; i<num; i++)
	{
		for (int k=i+1; k<num; k++)
		{
			if ((int)str[i]==(int)str[k])
			{
				res++;
				break;
			}
		}
		if(res) break;
	}
	if (res)
	{
		printf("Yes");
	}

	else
	{
		printf("No");
	}

	return 0;
}

#pragma warning(disable:4996)
#include <stdio.h>
#include <malloc.h>
#include <math.h>
#include <stdlib.h>
#define N 100
#define EPS 1E-5
//#define min(a,b) (a>b) ? b : a
int lol(const void *x1, const void *x2)
{
	return *(int*)x1 - *(int*)x2;
}
/*
int gcd(int a, int b)
{
	int c;
	while (b)
	{
		c = a % b;
		a = b;
		b = c;
	}
	return a;
}*/
int Min(int a, int b)
{
	return (a > b) ? b : a;
}
int main(void)
{
	int ch[26] = { 0 };
	char c;
	int n, i = 0;
	scanf("%i%c", &n, &c);
	do
	{
		scanf("%c", &c);
		if (c != '\n')
			ch[c - 'a']++;
	} while (c != '\n');
	qsort(ch, 26, sizeof(int), lol);
	for (i = 25; i >= 1; i--)
	{
		if (ch[i] != 1 || i == 1)
			ch[i - 1] += ch[i];
		else
		{
			if (n != 1)
			{
				printf("No");
				return 0;
			}
		}
	}
	printf("Yes");
	return 0;
}

#include<stdio.h>
#include<string.h>
#include<stdlib.h>

int main(){
	int n;
	scanf("%d", &n);

	if(n==1) {
		printf("Yes\n");
		exit(0);
	}

	int cnt[26] = {};
	char s[100001];
	scanf("%s", s);

	for(int i = 0 ; i < n ; i++) cnt[s[i]-'a'] ++;
	for(int i = 0 ; i < 26 ; i++){
		if(cnt[i] >= 2){
			printf("Yes\n");
			exit(0);
		}
	}

	printf("No\n");
}

#include<stdio.h>
int main(){
    int n;
    scanf("%d",&n);
    char s[n+1];
    scanf("%s",s);
    if(n==1){
        printf("Yes");
        return 0;
    }
    int i,alpha[26]={0,},res=0;
    for(i=0;i<n;i++){
        alpha[s[i]-'a']++;
        if(alpha[s[i]-'a']==2) res=1;
    }
    if(res) printf("Yes");

    else printf("No");
}

#include<stdio.h>
#include<string.h>
int freq[27];
int count(int n, char a,char s[])
{
    int cnt=0,i;
    for(i=0;s[i]!='\0';i++){
      if(a==s[i])
        cnt++;
    }

    return cnt;
}

int main()
{
    char s[100000],z;
    int i,j,k=0,n,t,cnt=0,c,am,f,tb=0;
    scanf("%d\n",&n);
    gets(s);
    for(i=0;s[i]!='\0';i++)
    {
        z=s[i];
        t=s[i];
        am=count(n,z,s);
        if(am>1)
        {
            tb=1;
            printf("Yes\n");
            break;
        }
        else if(n!=1)
            k=1;
        if(n==1)
            printf("Yes\n");
    }
    if(k==1 && tb==0){
         //if(tb==1)
            //printf("Yes\n");
        printf("No\n");
    }

    return 0;
}

#include<stdio.h>
#include<string.h>
int main()
{
    int n,i,j,a[26]={0};
    scanf("%d",&n);
    char s[n+5];
    scanf("%s",&s);

    i=0;
    while(s[i]!='\0')
    {
        a[s[i]-97]++;
        i++;
    }
    for(i=0;i<26;i++)
    {
        if(a[i]>=2)
        {
            printf("Yes\n");
            return 0;
        }
    }
    if(n==1)
        printf("Yes\n");
    else
        printf("No\n");
    return 0;
}

#include <stdio.h>

int Cnt[26];

int main()
{
    int n;
    char str[100001];
    scanf("%d %s", &n, str);
    for(int i = 0; i < n; ++i) {
        ++Cnt[str[i] - 'a'];
    }
    if(n == 1) {
        puts("Yes");
        return 0;
    }
    for(int i = 0; i < 26; ++i) {
        if(Cnt[i] >= 2) {
            puts("Yes");
            return 0;
        }
    }
    puts("No");
    return 0;
}

#include<stdio.h>
#include<stdlib.h>
int main()
{
    int x,i,j;
    scanf("%d",&x);
    char a[x];
    scanf("%s",&a);
    if(x==1)
    {
        printf("Yes\n");
        exit(0);
    }
    for(i=0;i<x-1;i++)
    {
        for(j=i+1;j<x;j++)
        {
            if(a[i]==a[j])
            {
                 printf("Yes\n");
                 exit(0);
            }
        }
    }
        printf("No\n");

}

#include<stdio.h>
main()
{
	long int n, i, j, f;
	char a[100010];
	scanf("%ld", &n);
	scanf("%s", a);
	if (n==1 || n>26)
	{
		f=1;
	}
	else
	{
		for (i=0, f=0; i<n; i++)
		{
			for (j=i+1; j<n; j++)
			{
				if (a[j]==a[i])
				{
					f=1;
					break;
				}
			}
		}
	}
	if (f==1)
	{
		printf("Yes\n");
	}
	else
	{
		printf("No\n");
	}
	return 0;
}

#include <stdio.h>
#include <string.h>
int main()
{
    int ln, n, i, j;
    char str[1000000];

    scanf("%d%s", &n, str);
    if(n == 1){
        printf("Yes");
        return 0;
    }
    if(n == 0){
        printf("Yes");
        return 0;
    }

    ln = strlen(str);
    for(i = 0; i < ln; i++){
        for(j = i + 1; j < ln; j++){
            if(str[i] == str[j]){
                printf("Yes");
                return 0;
            }
        }
    }
    printf("No");

    return 0;
}

#include <stdio.h>
#include <string.h>
int main()
{
    int n;
    scanf("%d",&n);
    if (n==1)
    {
        printf("Yes\n");
        return 0;
    }
    char s[n];
    scanf("%s",s);
    int i,j,l=0;
    for (i=0;i<n;i++)
    {
        for (j=i+1;j<n;j++)
        {
            if (s[i]==s[j])
            {
                l=1;
                break;
            }
        }
        if (l==1)
            break;
    }
    if (l==1)
        printf("Yes\n");
    else
        printf("No\n");
}

#include<stdio.h>
int main()
{
    int n,i,j,count,f;
    scanf("%d",&n);
    char s[n+1];
    scanf("%s",s);
    for(i=0;i<n-1;i++)
    {
        f=0;
        count=1;
        for(j=i+1;j<n;j++)
            if(s[i]==s[j])
            count++;
        if(count>=2)
        {
            f=1;
            break;
        }
    }
    if(f!=1&&n!=1)
        printf("No\n");
    else printf("Yes\n");
    return 0;
}

#include<stdio.h>
#include<string.h>
char c[100005];
int main()
{
    int a,i=0,j,k=0;
    scanf("%d",&a);
    scanf("%s",c);
    if(a>1)
    {
        if(a<27){
        for(i=0;i<a;i++)
        {
            for(j=i+1;j<a;j++)
            {
                if(c[i]==c[j]){
                    k=1;
                    break;}
            }
            if(k==1)
                break;

        }
        if(k==1)
            printf("Yes");
        else
            printf("No");
    }
    else
        printf("Yes");
    }
    if(a==1)
        printf("Yes");

}

#include <stdio.h>
const int M = 100001;
const int A = 26;
int main(){
    int n,i,a[A],c=0; for(i=0;i<A;i++) a[i]=0; char s[M];
    scanf("%i\n%s",&n,s);
    for(i=0;i<n;i++) a[s[i]-'a']++;
    for(i=0;i<A;i++) if(a[i]>1) c++;

    if(c>0 || n==1)
        printf("YES");
    else
        printf("NO");
    return 0-0-0;
}

#include <stdio.h>
#include <string.h>
int n;
int vis[205];
char str[100005];

int main()
{
  scanf("%d%s",&n,str);
  if(n == 1){
    puts("Yes");
    return 0;
  }
  memset(vis,0,sizeof(vis));
  int ans = 0;
  int num = 0;
  for(int i=0;i<n;i++)
  {
    vis[str[i]]++;
  }
  for(int i=0;i<26;i++)
  {
    if(vis['a'+ i] >= 2)num++;
  }
  if(num != 0)
    puts("Yes");
  else
    puts("No");
  return 0;
}

#include<stdio.h>
#include<string.h>
int main()
{
    int a,i=0,j,k=0,b;
    char c[60],ce;
    scanf("%d",&a);
    ce=getchar();
    gets(c);
    b=strlen(c);
    if(b==a)
    {
        for(i=0;i<b-1;i++)
        {
            for(j=i+1;j<b;j++)
            {
                if(c[i]==c[j])
                    k=1;
            }

        }
        if(k==1)
            printf("Yes");
        else
            printf("No");
    }
}

#include<stdio.h>
#define N 100001
int main(){
    int n;
    scanf("%d",&n);
    char s[N];
    scanf("%s",s);
    int count[27];
    int i;
    for(i=0;i<27;i++){
        count[i]=0;
    }
    for(i=0;i<n;i++){
        count[s[i]-'a']++;
    }
    int yes=0;
    for(i=0;i<27;i++){
        if(count[i]>1){
            yes=1;
            break;
        }
    }
    if(yes){
        printf("Yes\n");
    }else{
        printf("No\n");
    }

    return 0;
}

#include<stdio.h>

int main()

{
    int n,i,j,p=0,count=0;
    char a[1000][1000];

    scanf("%d",&n);

    for(i=0;i<n;i++)
       {
          scanf("%s",&a[i]);
       }

    for(i=0;i<n-1;i++)
      {
        for(j=i+1;j<n;j++)
        {
         p=strcmp(a[i],a[j]);
         if(p==0)
         count++;
        }

      }

   if(count>=1)
       printf("YES");

    else
       printf("NO");

       return 0;
}

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main()
{
    int n =0,che = 0;
    do
    {
        scanf("%d",&n);
    }
    while(n<1 || n > 100000);
    char arr[n];
    scanf("%s",&arr);
    int freq[26];
    for(int i = 0;i < 26;++i)
    {
        freq[i]=0;
    }
    for(int i =0,n = strlen(arr);i < n ;++i)
    {
        ++freq[arr[i] - 'a'];
        if((freq[arr[i]- 'a']) > 1)
        {
            che = 1;
            break;
        }
        else if (n = 1)
        {
            che = 1;
            break;
        }
    }
    if (che)
        printf("Yes");
    else
        printf("No");

    return 0;
}

#include <stdio.h>
#include <stdlib.h>

int main()
{
    long n, i, j, g;
    char a[110000], b;

    scanf("%d %s", &n, a);

    for(i=0; i<n-1; i++)
    {
        b=a[i], g=0;
        for(j=i+1; j<n; j++)
        {
            if(a[i]==a[j])
                g++;
        }

        if(g>=1)
            goto h;
    }
    h:
        if(i==(n-1))
            printf("No");
        else
            printf("Yes");
}

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
int main()
{
    int n,i,a[26];
    memset(a,0,26*sizeof(int));
    scanf("%d",&n);
    char c;
    if(n<2)
        printf("Yes");
    else{
    while(n--)
    {
        scanf("%c",&c);
        a[c-'a']++;
    }
    for(i=0;i<26;i++)
    {
        if(a[i]>=2)
        {printf("Yes");break;}
    }
    if(i>=26)
        printf("No");}
}

#include<stdio.h>

int main()
{
    int i;
    scanf("%d",&i); /**ȡ����i*/
    getchar();
    int flag=0;
    char c;
    int x,y;
    int array[26];
    for(x=0; x<26; x++){
        array[x]=0;
    }
    for(x=0; x<i; x++){
        c=getchar();
        y=c-'a';
        array[y]++;
    }

    if(i=1) printf("Yes");
    else    {
        for(x=0; x<26; x++){
            if(array[x]>1)  {flag=1; break;}
        }
        if(flag)    printf("Yes");
        else        printf("No");
    }
    return 0;

}

#include <stdio.h>

main(){
    int i, tp, flag= 0;
    scanf("%i", &tp);
    char pc[tp+1];
    scanf("%s", pc);
    int n_c[27]= {0};
    for(i=0; i<tp; ++i){
        n_c[pc[i]-'a'+1]++;
    }
    for(i=1; i<27; ++i){
        if(n_c[i]>= 2){
            flag= 1;
        }
    }
    if(flag)
        printf("YES");
    else
        printf("NO");
}

#include<stdio.h>

int main()
{
    int n, i, j;
    scanf("%d", &n);
    char str[n+1], temp;
    scanf("%s", str);
    for(i=0; str[i]; i++)
    {
        j=i;
        while(j>0 && str[j]<str[j-1])
        {
            temp=str[j];
            str[j]=str[j-1];
            str[j-1]=str[j];
            j--;
        }
    }

    int ara[26]={0};

    for(i=0; str[i]; i++)
    {
        ara[str[i]-'a']++;
    }

    int c, c1;
    for(i=0; i<26; i++)
    {
        if(ara[i]==1)
        {
            c1++;
        }
        else
            c++;
    }

    if(c>1)
        printf("Yes\n");
    else
        printf("No\n");

    return 0;
}

#include <stdio.h>
int main(void) {

	int n;
	scanf("%d",&n);

	char s[n+5];

	scanf("%s",s);

	int i,ctr=0,newc=0;
	int color[26]={0};

	for(i=0;i<n;i++)
	{
	    if(color[s[i]-97]==0)
	    {
	        newc++;
	    }

	    color[s[i]-97]++;

	}

	for(i=0;i<26;i++)
	{
	    if(color[i]==1)
	    {
	        ctr++;
	    }
	}

	if(ctr==newc)
	    printf("No");
	else
	    printf("Yes");

	return 0;
}

#include<stdio.h>
#include<string.h>
int main()
{
    char temp,str[101];

    int i,j,n,count=1;
    scanf("%d\n",&n);
    scanf("%s",str);

 //  printf("%d",n);

    for(i=0; i<n-1; i++)
    {
        for(j=0; j<n-i; j++)
        {
            if(str[j]<str[j+1])
            {
                temp=str[j];
                str[j]=str[j+1];
                str[j+1]=temp;
            }
        }
    }

    for(i=0; i<n-1; i++)
    {
        if(str[i]!=str[i+1])
            count++;
    }

 if(n==count)printf("No\n");
 else printf("Yes\n");

    return 0;
}

#include<stdio.h>
#include<string.h>
char c[100005];
int main()
{
    int a,i=0,j,k=0,b;
    char ce;
    scanf("%d",&a);
    ce=getchar();
    gets(c);
    b=strlen(c);
    if(b==a)
    {
        for(i=0;i<b-1;i++)
        {
            for(j=i+1;j<b;j++)
            {
                if(c[i]==c[j])
                    k=1;
            }

        }
        if(k==1)
            printf("Yes");
        else
            printf("No");
    }
}

#include<stdio.h>
#include<string.h>
int possible(char *str,int n)
{
    int i,j;
    for(i=0;i<n;i++){
        for(j=i+1;j<n;j++){
            if(str[i]==str[j]) return 1;
        }
    }
    return 0;
}
int main()
{
    int n;
    scanf("%d",&n);
    char str[n];
    getchar();
    gets(str);
    if(possible(str,n)==1) printf("Yes");
    else printf("No");
    return 0;
}

#include<stdio.h>
int main() {
	char b[26];
	char c;
	int n;
	scanf("%i", &n);
	getchar();
	for (int i = 0; i < 26; i++) {
		b[i] = 0;
	}
	for (int i = 0; i <n; i++) {
		c = getchar();
		b[(int)c - 97]++;
	}
	int wrong=0;
	int kind = 0;
	for (int i = 0; i < 26; i++) {
		if (b[i] ==1) {
			wrong++;
		}
		if (b[i]>0){
			kind++;
		}
	}
	if ((kind>1)&&(wrong==kind)) {
		printf("No");
	}
	else {
		printf("Yes");
	}
	return 0;
}

#include<stdio.h>

int main()
{

     int n=0,i=0,j=0;
  char str[100000];

	scanf("%d",&n);
printf("");
		scanf("%s",str);
for(i=0;i<n;i++)
	{
		for(j=i;j<n;j++)
		{
			if(str[i]==str[j])
			{
				printf("\nYES");
				return 0;
			}
		}
	}
printf("NO");
return 0;
}

#include<stdio.h>
#include<stdlib.h>
long int ndogs;
char colors[100000];
char test(char* arr)
{
	int i = 0;
	int j = 0;
	for (i = 0; i <= ndogs; i++)
	{
		for (j = i + 1; j <= ndogs; j++)
		{
			if (arr[i] == arr[j])
			{
				return 1;
			}
		}
	}
	return 0;
}
int main(void)
{
	scanf("%d", &ndogs);
	scanf("%s", colors);
	if (test(colors))
		printf("Yes");
	else printf("No");
	return 0;
}

#include<stdio.h>
#include<string.h>

int main()
{
	int i,n,l;
	char s[10010];
	int flag=0;
	scanf("%d",&n);
	scanf("%s",s);
	l=strlen(s);

	int a[26]={0};

	for(i=0;i<l;i++)
	{
		s[i]-=97;
		a[s[i]]+=1;
	}

	for(i=0;i<26;i++)
	{
		if(a[i]>=2)
		{
			flag=1;
		}
	}

	if(flag==1)
	{
		printf("YES\n");
	}

	else
		printf("NO\n");

	return 0;
}

#include<stdio.h>
int main()
{
int n,b,i;
scanf("%d",&n);
char s[n+1];
scanf("%s",&s);
for(i=97;i<123;i=i+1)
{
    int j=0,num=0;
    while(s[j]!=0)
    {
        b=s[j];
        if(i==b)
        {
            num=num+1;
        }
        j=j+1;
    }
    if(num>1)
    {
        printf("Yes");
        exit(0);
    }
}
printf("No");
}

#include<stdio.h>

int main()
{
    int i;
    scanf("%d",&i); /**ȡ����i*/
    int flag=0;
    char c;
    int x,y;
    int array[26];
    for(x=0; x<26; x++){
        array[x]=0;
    }
    for(x=0; x<i; x++){
        c=getchar();
        y=c-'a';
        array[y]++;
    }
    for(x=0; x<26; x++){
        if(array[x]>1)  {flag=1; break;}
    }
    if(flag)    printf("Yes");
    else        printf("No");
    return 0;

}

#include<stdio.h>
#include<string.h>
int main()
{
    long int n,i,p;
    scanf("%ld",&n);
    long int ara[27]={0};
    char str[n+2];
    scanf("%s",str);
    for(i=0;i<n;i++)
    {
       p=(str[i]-'a')+1;
       ara[p]++;
       if(ara[p]>1)
       {
           printf("Yes\n");
           break;
       }
       else
       {
           if(i==n-1) printf("No\n");
       }
    }
    return 0;
}

#include<stdio.h>
int main()
{
    int arr[26], n ;
    char c ;
    scanf("%d", &n) ;
    scanf("%c", &c) ;
    int i ;
    for(i = 0 ; i < 26 ; i++)
        arr[i] = 0 ;
    for(i = 0 ; i < n ; i++)
    {
        scanf("%c", &c) ;
        arr[((int)c) - 0x61] += 1 ;
    }
    int flag = 0 ;
    for(i = 0 ; i < 26 ; i++)
        if(arr[i] != 1 && arr[i] != 0)
        {
            flag = 1 ;
            break ;
        }
    if(flag == 1)
        printf("Yes") ;
    else
        printf("No") ;
    return 0 ;
}

#include <stdio.h>
#include <string.h>

int main(){
  char a,b;
  int t, count[26]={0};
  scanf("%d",&t);
  scanf("%c",&b);
  for(int i = 0; i < t; i++) {
    scanf("%c",&a);
    count[a-97]++;
    if (count[a-97] > 1) {
      printf("Yes\n");
      return 0;
    }
  }
  printf("No\n");
  return 0;
}

#include<stdio.h>
#include<stdlib.h>

int main()
{
    int n;
    scanf("%d",&n);
    char* s=(char*)malloc((n+1)*sizeof(int));
    int a[26]={0};
    scanf("%s",s);
    int f=0;
    for(int i=0;i<n;i++)
    {
       a[(int)s[i]-97]++;
       if(a[(int)s[i]-97]>1)
     {  f=1;
       break;}
    }
    if(f==1)
    printf("yes");
    else
    printf("no");
}

#include<stdio.h>
#include<stdlib.h>
int main()
{
    int x,i,j,c=0;
    scanf("%d",&x);
    char a[x];
    scanf("%s",&a);
    for(i=0;i<x-1;i++)
    {
        for(j=i+1;j<x;j++)
        {
            if(a[i]==a[j])
            {
                c++;
            }
        }
    }
    if(c==0)
    {
        printf("No\n");
    }
    else
    {
        printf("Yes\n");
    }
}

//codeforces

#include <stdio.h>

int main()
{
	int i, j, k, flag, singleFlag, n, groupC=0, singleC=0;
	char str[100001], counted[10001]=" ";

	scanf("%d %s", &n, str);

	for(i=0; i<n; i++)
	{
		singleFlag=1;
		for(j=i+1; j<n; j++)
		{
			flag=1;
			for(k=0; k<n; k++)
				if(str[i]==counted[k])
					flag=0;

			if(flag && (str[i]==str[j]))
			{
				singleFlag=0;
				groupC++;
				counted[i]=str[i];
			}
		}
		if(singleFlag) singleC++;
	}

	singleC-=groupC;

	if(singleC<=groupC) printf("Yes");
	else printf("No");

	return 0;
}

#include<stdio.h>
int main()
{
		int n,a[26]={0};
		char ch;
		scanf("%d",&n);
		for(int i=0;i<n;i++)
		{
				scanf("%c",&ch);
				a[ch-97]++;
			}
		for(int i=0;i<26;i++)
		{
				if(a[i]>=2)
				{
						printf("Yes");
return 0;

				}

		}
		printf("No");
		return 0;

}

#include<stdio.h>

int main()
{
    int i;
    scanf("%d",&i); /**ȡ����i*/
    getchar();
    int flag=0;
    char c;
    int x,y;
    int array[26];
    for(x=0; x<26; x++){
        array[x]=0;
    }
    for(x=0; x<i; x++){
        c=getchar();
        y=c-'a';
        array[y]++;
    }

    for(x=0; x<26; x++){
        if(array[x]>1)  {flag=1; break;}
    }
    if(flag)    printf("Yes");
    else        printf("No");

    return 0;

}

#include<stdio.h>
void mergesort(char arr[], int l, int r)
{
if (l < r)
{
int m = l+(r-l)/2;
mergesort(arr, l, m);
mergesort(arr, m+1,r);
merge(arr, l, m, r);
}
}
void merge(char arr[], int l, int m, int r)
{
int i, j, k;
int n1 = m - l + 1;
int n2 = r - m;
char L[1+n1], R[1+n2];
for (i = 0; i < n1; i++)
L[i] = arr[l + i];
for (j = 0; j < n2; j++)
R[j] = arr[m + 1+ j];
i = 0;
j = 0;
k = l;
while (i < n1 && j < n2)
{
if (L[i] <= R[j])
{
arr[k] = L[i];
i++;
}
else
{
arr[k] = R[j];
j++;
}
k++;
}
while (i < n1)
{
arr[k] = L[i];
i++;
k++;
}
while (j < n2)
{
arr[k] = R[j];
j++;
k++;
}
}
int main()
{
    int n,f=0,count=1;
    scanf("%d",&n);
    char s[n+1];
    scanf("%s",s);
    s[n]='\0';
    mergesort(s,0,n-1);
    for(int i=0;i<n;i++)
    {
    if(s[i]==s[i+1])
    {
    count++;
    if(count==2)
    {
    f=1;
    break;
    }
    }
    else
    count=1;
    }
    if(f==1)
    printf("%s","YES");
    else
    printf("%s","NO");
    return 0;
}

#include<stdio.h>

int main()
{
    int n, i, j, c=0;
    scanf("%d", &n);
    char str[n+1], temp;
    scanf("%s", str);
    if(n==1)
    {
        printf("Yes\n");
        return 0;
    }
    else
    {
        for(i=0; str[i]; i++)
        {
            j=i;
            while(j>0 && str[j]<str[j-1])
            {
                temp=str[j];
                str[j]=str[j-1];
                str[j-1]=str[j];
                j--;
            }
        }

        int ara[26]={0};

        for(i=0; str[i]; i++)
        {
            ara[str[i]-'a']++;
        }

        for(i=0; i<26; i++)
        {
            if(ara[i]>=2)
            {
                c++;
            }
        }

        if(c>0)
            printf("Yes\n");
        else
            printf("No\n");
        }

    return 0;
}

#include<stdio.h>
#include<string.h>
#include<malloc.h>

int main(){
	int size;
	scanf("%d",&size);
	char arr[100000];
	scanf("%s",&arr);
	int a[26] ={0};
	int x,i;
	for(i=0;i<strlen(arr);i++){
		x = arr[i];
		a[x-97]++;
	}
	for(i=0;i<26;i++){
		if(a[i]%2==0 && a[i]!=0){
			printf("Yes");
			return 0;
		}
	}
	printf("No");
	return 0;
}

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
int main()
{
    int n,i,a[26];
    memset(a,0,26*sizeof(int));
    scanf("%d",&n);
    char c;
    if(n<2)
        printf("Yes");
    else{
    while(n--)
    {
        scanf("%c",&c);
        a[c-'a']++;
    }
    for(i=0;i<26;i++)
    {
        if(a[i]>=2)
        {printf("Yes");break;}
    }
    if(i>=26)
        printf("No");}
}

#include<stdio.h>
#define N 100001
int main(){
    int n;
    scanf("%d",&n);
    char s[N];
    scanf("%s",s);
    int count[27];
    int i;
    for(i=0;i<27;i++){
        count[i]=0;
    }
    for(i=0;i<n;i++){
        count[s[i]-'a']++;
    }
    int yes=0;
    for(i=0;i<27;i++){
        if(count[i]>1){
            yes=1;
            break;
        }
    }
    if(yes){
        printf("Yes\n");
    }else{
        printf("No\n");
    }

    return 0;
}

#include<stdio.h>
#include<string.h>
int main()
{
    int n,i,j,a[26]={0};
    scanf("%d",&n);
    char s[n+5];
    scanf("%s",&s);

    i=0;
    char ch=s[0];
    while(s[i]!='\0')
    {
        if(s[i]==ch)
        a[0]++;
        i++;
    }
    if(a[0]>=2)
        printf("Yes\n");
    else
        printf("No\n");
    return 0;
}

#include <stdio.h>
#include <stdlib.h>

int main()
{
    long n, i, j, g;
    char a[110000], b;

    scanf("%d %s", &n, a);

    for(i=0; i<n-1; i++)
    {
        b=a[i], g=0;
        for(j=i+1; j<n; j++)
        {
            if(a[i]==a[j])
                g++;
        }

        if(g>=1)
            goto h;
    }
    h:
        if(i==(n-1))
            printf("No");
        else
            printf("Yes");
}

#include<stdio.h>
#include<string.h>

char str[100010];
int a[200];
int main()
{

	int n;
	while (scanf("%d", &n) != EOF)
	{
		getchar();
		memset(a, 0, sizeof(a));
		for (int i = 0; i < n; i++)
		{
			char m = 0;
			scanf("%c", &m);
			a[m - '0']++;
		}
		int sum1 = 0, sum2 = 0;
		for (int i = 0; i < 200; i++)
		{
			if (a[i] >= 2)
			{
				sum2++;
			}
			else
			{
				if (a[i] == 1)
				{
					sum1++;
				}
			}
		}
		if (sum1==n||n==1)
		{
			printf("No\n");
		}
		else
		{
			printf("Yes\n");
		}
	}
	return 0;

}

#include <stdio.h>
#include<string.h>

int main() {
	 int n,i,j,c=0,d=0;
	char ch[100005];
	scanf("%d",&n);
	scanf("%s",ch);

	for(i=0;i<n;i++)
	{

	    for(j=i+1;j<n;j++)
	    {

	        if(ch[i]==ch[j])
	        {

	            c++;

	        }

	    }
	}

	if(c>=2)
	{
	    printf("Yes");
	}
	else
	{
	    printf("No");
	}
	return 0;
}

#include<stdio.h>
#include<string.h>
int main()
{
    int i,j,k,l=0,m,n;
    char a[10001];
    scanf("%d",&n);
    scanf("%s",a);
    m=strlen(a);
    for(i=0;i<m;i++)
    {
        for(j=i+1;j<m;j++)
        {
            if(a[i]==a[j])
               {l++;}
        }
    }

if(l>0)

    printf("YES\n");
    else
        printf("NO\n");

return 0;}

#include<stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
#include <conio.h>
typedef long long int lli;
int main()
{
	lli n,i,j=0,f[30]={0};
	char s[100005];
	scanf("%lld",&n);
	scanf("%s",s);
	for(i=0;i<n;i++){
		s[i]-=96;
		f[s[i]]++;
	}
	for(i=1;i<=26;i++){
		if(f[i]<=1){
			j++;
		}
	}
	if(j==26){
		printf("No");
	}
	else{
		printf("Yes");
	}
	return 0;
}

#include<stdio.h>
#include<string.h>
char c[100005];
int main()
{
    int a,i=0,j,k=0,b;
    char ce;
    scanf("%d",&a);
    ce=getchar();
    gets(c);
    b=strlen(c);
    if(b==a)
    {
        for(i=0;i<b-1;i++)
        {
            for(j=i+1;j<b;j++)
            {
                if(c[i]==c[j]){
                    k=1;
                    break;}
            }
            if(k==1)
                break;

        }
        if(k==1)
            printf("Yes");
        else
            printf("No");
    }
}

#pragma warning(disable:4996)
#include <stdio.h>
#include <malloc.h>
#include <math.h>
#include <stdlib.h>
#define N 100
#define EPS 1E-5
//#define min(a,b) (a>b) ? b : a
int lol(const void *x1, const void *x2)
{
	return *(int*)x1 - *(int*)x2;
}
/*
int gcd(int a, int b)
{
	int c;
	while (b)
	{
		c = a % b;
		a = b;
		b = c;
	}
	return a;
}*/
int Min(int a, int b)
{
	return (a > b) ? b : a;
}
int main(void)
{
	int ch[26] = { 0 };
	char c;
	int n, i = 0;
	scanf("%i%c", &n, &c);
	do
	{
		scanf("%c", &c);
		if (c != '\n')
			ch[c - 'a']++;
	} while (c != '\n');
	qsort(ch, 26, sizeof(int), lol);
	for (i = 25; i >= 1; i--)
	{
		if (ch[i] != 1 || i == 1)
			ch[i - 1] += ch[i];
		else
		{
			printf("No");
			return 0;
		}
	}
	printf("Yes");
	return 0;
}

#include <stdio.h>
#include<string.h>

int main() {
	 int n,i,j,c=0;
	char ch[100005];
	scanf("%d",&n);
	scanf("%s",ch);

	for(i=0;i<n;i++)
	{

	    for(j=i+1;j<n;j++)
	    {

	        if(ch[i]==ch[j])
	        {

	            c++;

	        }

	    }
	    if(c==2)
	    {
	        break;
	    }
	}

	if(c>=2)
	{
	    printf("Yes");
	}
	else
	{
	    printf("No");
	}
	return 0;
}

#include<stdio.h>
#include<stdlib.h>
#include<math.h>

typedef long long int int64;

#define MAX(a,b) ((a)>(b)?(a):(b))
#define MIN(a,b) ((a)<(b)?(a):(b))
#define ABS(a) ((a)>(0)?(a):-(a))

void run(void){
  int n;
  scanf("%d",&n);
  char *s=(char *)malloc(sizeof(char)*(n+1));
  scanf("%s",s);
  int cnt[26];
  int i;
  for(i=0;i<26;i++) cnt[i]=0;
  for(i=0;i<n;i++) cnt[s[i]-'a']++;
  for(i=0;i<26;i++){
    if(cnt[i]>=2){
      printf("Yes\n");
      return;
    }
  }
  printf("No\n");
  return;
}

int main(void){
  run();
  return 0;
}

#include<stdio.h>
int main()
{
	char a[100000];
	int c[26]={0},i,jud=0,n;
	scanf("%d",&n);
	scanf("%s",a);
	for(i=0;i<n;i++)
	{
		c[a[i]-'a']++;
		if(c[a[i]-'a']==2)
		{
			jud=1;
			break;
		}
	}
	if(jud)printf("Yes");
	else printf("No");
	return 0;
}

#include <stdio.h>

int Cnt[26];

int main()
{
    int n;
    char str[100001];
    scanf("%d %s", &n, str);
    for(int i = 0; i < n; ++i) {
        ++Cnt[str[i] - 'a'];
    }
    for(int i = 0; i < 26; ++i) {
        if(Cnt[i] >= 2) {
            puts("Yes");
            return 0;
        }
    }
    puts("No");
    return 0;
}

#include<stdio.h>

int main()
{
    int i;
    scanf("%d",&i); /**ȡ����i*/
    int flag=0;
    char c;
    int x,y;
    int array[26];
    for(x=0; x<26; x++){
        array[x]=0;
    }
    for(x=0; x<i; x++){
        c=getchar();
        y=c-'a';
        array[y]++;
    }
    for(x=0; x<26; x++){
        if(array[x]>1)  {flag=1; break;}
    }
    if(flag)    printf("Yes");
    else        printf("No");
    return 0;

}

#include<stdio.h>
#include<string.h>
int main()
{
    int n,i,k,l,s=0;
    scanf("%d",&n);
    char S[n];
    scanf("%s",S);
    int A[26];
    for(i=0;i<26;i++)
    {
        A[i]=0;
    }
    for(i=0;i<n;i++)
    {
        A[S[i]-97]++;
    }
    for(i=0;i<26;i++)
    {
       if(A[i]>1)
       {
           s++;
       }
    }
    if(s<1)
    {
        printf("No\n");
    }
    else
    {
        printf("Yes\n");
    }
    return 0;
}

#include<stdio.h>
#include<string.h>
char c[100005];
int main()
{
    int a,i=0,j,k=0,b;
    char ce;
    scanf("%d",&a);
    ce=getchar();
    gets(c);
    b=strlen(c);
    if(b==a)
    {
        if(b<27){
        for(i=0;i<b-1;i++)
        {
            for(j=i+1;j<b;j++)
            {
                if(c[i]==c[j]){
                    k=1;
                    break;}
            }
            if(k==1)
                break;

        }
        if(k==1)
            printf("Yes");
        else
            printf("No");
    }
    else
        printf("Yes");
    }

}

#include<stdio.h>
#include<string.h>
int main()
{
    int a,i=0,j,k=0,b;
    char c[60],ce;
    scanf("%d",&a);
    ce=getchar();
    gets(c);
    b=strlen(c);
    if(b==a)
    {
        for(i=0;i<b-1;i++)
        {
            for(j=i+1;j<b;j++)
            {
                if(c[i]==c[j])
                    k=1;
            }

        }
        if(k==1)
            printf("Yes");
        else
            printf("No");
    }
}

#include<stdio.h>

int main()
{
    int n, i, j, c=0;
    scanf("%d", &n);
    char str[n+1], temp;
    scanf("%s", str);
    for(i=0; str[i]; i++)
    {
        j=i;
        while(j>0 && str[j]<str[j-1])
        {
            temp=str[j];
            str[j]=str[j-1];
            str[j-1]=str[j];
            j--;
        }
    }

    int ara[26]={0};

    for(i=0; str[i]; i++)
    {
        ara[str[i]-'a']++;
    }

    for(i=0; i<26; i++)
    {
        if(ara[i]>=2)
        {
            c++;
        }
    }

    if(c>0)
        printf("Yes\n");
    else
        printf("No\n");

    return 0;
}

#include <stdio.h>
#include <string.h>
int main()
{
	int n,k=0;
	scanf("%d",&n);
	char arr[n];
	scanf("%s",arr);
	for(int i=0;i<n;i++)
	{
		for(int j=i+1;j<n;j++)
		if(arr[i]==arr[j])
		{
			k=1;
		   break;
	   }
	   {
		   if(n==1)
		   k=1;
		   if(k==1)
		   printf("yes");
		   else printf("no");
		   return 0;
	   }
   }
}

#include <stdio.h>
#include<string.h>

int main() {
	 int n,i,j,c=0,d=0;
	char ch[100005];
	scanf("%d",&n);
	scanf("%s",ch);

	for(i=0;i<n;i++)
	{

	    for(j=i+1;j<n;j++)
	    {

	        if(ch[i]==ch[j])
	        {

	            c++;
	            break;
	        }

	    }
	}

	if(c>=2)
	{
	    printf("Yes");
	}
	else
	{
	    printf("No");
	}
	return 0;
}

#include<stdio.h>
#include<string.h>

int main()
{
	int i,n,l;
	char s[10010];
	int flag=0;
	scanf("%d",&n);
	scanf("%s",s);
	l=strlen(s);

	int a[26]={0};

	for(i=0;i<l;i++)
	{
		s[i]-=97;
		a[s[i]]+=1;
	}

	for(i=0;i<26;i++)
	{
		if(a[i]>=2)
		{
			flag=1;
		}
	}

	if(flag==1)
	{
		printf("YES\n");
	}

	else
		printf("NO\n");

	return 0;
}

#include <stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
int main()
{
#ifndef ONLINE_JUDGE
	freopen("input.txt", "r", stdin);
	freopen("output.txt", "w", stdout);
#endif

	long long int n, p = 0,z;
	scanf("%lld ", &n);
	char a[100000];
	gets(a);
	z=strlen(a);
	printf("%lld\n",z );
	if (strlen(a) > 1)
	{
		for (long long int i = 0; i < n; ++i)
		{
			for (long long int j = 0; j < n; ++j)
			{
				if (a[i] == a[j] && i != j)
				{
					p++;
					//printf("%lld\n",p );
					break;
				}
			}
			if (p>0)
				break;
		}
		if (p>0)
			printf("YES\n");
		if(p==0)
			printf("NO\n");
	}
	if(strlen(a)==1)
		printf("YES\n");

}

#include<stdio.h>
#include<string.h>

int main()
{

    long int l=0,i,j,n,m;
 char a[100000+1];
    scanf("%ld",&n);
    scanf("%s",a);
    m=strlen(a);
    for(i=0;i<27;i++){
    for(j=i+1;j<27;j++){
          if(a[i]==a[j])
               {l++;}

        }}

if(l>0)

    printf("YES\n");
    else if(m==1)
        printf("YES\n");
    else
        printf("NO\n");

return 0;}

#include<stdio.h>
#include<string.h>

char str[100010];
int a[200];
int main()
{

	int n;
	while (scanf("%d", &n) != EOF)
	{
		getchar();
		memset(a, 0, sizeof(a));
		for (int i = 0; i < n; i++)
		{
			char m = 0;
			scanf("%c", &m);
			a[m - '0']++;
		}
		int sum1 = 0, sum2 = 0;
		for (int i = 0; i < 200; i++)
		{
			if (a[i] >= 2)
			{
				sum2++;
			}
			else
			{
				if (a[i] == 1)
				{
					sum1++;
				}
			}
		}
		//printf("sum1->%d,sum2->%d\n", sum1, sum2);
		if (sum1 > sum2)
		{
			printf("No\n");
		}
		else
		{
			printf("Yes\n");
		}
	}
	return 0;

}

#include<stdio.h>
int main() {
	char b[26];
	char c;
	int n;
	scanf("%i", &n);
	getchar();
	for (int i = 0; i < 26; i++) {
		b[i] = 0;
	}
	for (int i = 0; i <n; i++) {
		c = getchar();
		b[(int)c - 96]++;
	}
	int wrong=0;
	int kind = 0;
	for (int i = 0; i < 26; i++) {
		if (b[i] ==1) {
			wrong++;
		}
		if (b[i]>0){
			kind++;
		}
	}
	if ((kind>1)&&(wrong==kind)) {
		printf("No");
	}
	else {
		printf("Yes");
	}
	return 0;
}

#include<stdio.h>

int main()
{
  long long int n;
  scanf("%lld",&n);
char  a[n];

scanf("%s",a);
//printf("%c",a[n-1]);
long long int temp;
long long int f[26];

for(int i=0;i<26;i++)
{
  f[i]=99999999999999;
}
int fl=0;
for(int i=0;i<n;i++)
{
  temp=a[i]-97;
  if(f[temp]==99999999999999) f[temp]=0;
  f[temp]=f[temp]+1;
  if(f[temp]==2 && f[temp]!=99999999999999)
  {
    printf("Yes\n");
    return 0;
  }
}

printf("No\n");

}

#include<stdio.h>

int main()
{
    int i;
    scanf("%d",&i); /**ȡ����i*/
    getchar();
    int flag=0;
    char c;
    int x,y;
    int array[26];
    for(x=0; x<26; x++){
        array[x]=0;
    }
    for(x=0; x<i; x++){
        c=getchar();
        y=c-'a';
        array[y]++;
    }

    for(x=0; x<26; x++){
        if(array[x]>1)  {flag=1; break;}
    }
    if(flag)    printf("Yes");
    else        printf("No");

    return 0;

}

#include<stdio.h>
int main()
{
    int n,i,j,c=0;
    char a[100001];
    scanf("%d%s",&n,a);
    for(i=0; i<n-1; i++)
    {
        for(j=i+1; j<n; j++)
            if(a[i]==a[j])
            {
                c++;
                break;
            }
        if(c)
            break;
    }
    if(c)
        printf("Yes\n");
    else
        printf("No\n");
    return 0;
}

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main()
{
   char ch, input[100], output[100];
   int no[26] = {0}, n, c, t, x,k=0,i,j;
  scanf("%d",&n);
   printf("Enter some text\n");
   scanf("%s", input);
   for(i=97;i<=122;i++)
   {
       for(j=0;j<n;j++)
       {
           if(input[j]==i)
           {
               k++;
               break;
           }
       }
   }
   for (c = 0; c < n; c++)
   {
      ch = input[c] - 'a';
      no[ch]++;
   }
   t = 0;
   for (ch = 'a'; ch <= 'z'; ch++)
   {
      x = ch - 'a';

      for (c = 0; c < no[x]; c++)
      {
         output[t] = ch;
         t++;
      }
   }
   output[t] = '\0';
   if(n>k)
   {
       printf("YES");
   }
   if(n==k)
   {
       printf("NO");
   }

   return 0;
}

#include<stdio.h>
#include<stdlib.h>
#include<math.h>

typedef long long int int64;

#define MAX(a,b) ((a)>(b)?(a):(b))
#define MIN(a,b) ((a)<(b)?(a):(b))
#define ABS(a) ((a)>(0)?(a):-(a))

void run(void){
  int n;
  scanf("%d",&n);
  char *s=(char *)malloc(sizeof(char)*(n+1));
  scanf("%s",s);
  int cnt[256]={0};
  int i;
  for(i=0;i<n;i++) cnt[(int)s[i]]++;
  for(i='a';i<='z';i++){
    if(cnt[i]>=2){
      printf("Yes\n");
      return;
    }
  }
  printf("No\n");
  return;
}

int main(void){
  run();
  return 0;
}

#include<stdio.h>
int main()
{
    int n,i,j,count,f;
    scanf("%d",&n);
    char s[n+1];
    scanf("%s",s);
    for(i=0;i<n-1;i++)
    {
        f=0;
        count=1;
        for(j=i+1;j<n;j++)
            if(s[i]==s[j])
            count++;
        if(count>=2)
        {
            f=1;
            break;
        }
    }
    if(f!=1)
        printf("No\n");
    else printf("Yes\n");
    return 0;
}

#include<stdio.h>

int main()
{
    int i;
    scanf("%d",&i); /**ȡ����i*/
    int flag=0;
    char c;
    int x,y;
    int array[26];
    for(x=0; x<26; x++){
        array[x]=0;
    }
    for(x=0; x<i; x++){
        c=getchar();
        y=c-'a';
        array[y]++;
    }
    for(x=0; x<26; x++){
        if(array[x]>1)  {flag=1; break;}
    }
    if(flag)    printf("Yes");
    else        printf("No");
    return 0;

}

#include<stdio.h>
#include<string.h>

int main()
{
  char temp;
  int i,j,n,count=1;
  scanf("%d",&n);
  char str[n+6];
  scanf("%s",str);
  if(n==1 || n>26){
    printf("Yes\n");
  }
  for(i=0;i<n-1;i++)
  {
      for(j=0;j<n-1;j++)
      {
         if(str[j]<str[j+1])
         {

            temp=str[j];
                str[j]=str[j+1];
                str[j+1]=temp;
         }
      }

  }

 for(i=0;i<n-1;i++)
 {
     if(str[i]!=str[i+1])
        count++;
 }
 if(n==count)printf("No\n");
 else printf("Yes\n");

}

#include <stdio.h>
#include <string.h>
int main()
{
    int ln, n, i, j;
    char str[100000];

    scanf("%d%s", &n, str);
    ln = strlen(str);
    for(i = 0; i < ln; i++){
        for(j = i + 1; j < ln; j++){
            if(str[i] == str[j]){
                printf("Yes");
                return 0;
            }
        }
    }
    printf("No");

    return 0;
}

#include <stdio.h>
#include <stdlib.h>

int main()
{
    int n;
    scanf("%d", &n);
    char pup[n+1];
    scanf("%s", pup);
    if(n>26)
    {
        printf("Yes");
        return 0;
    }
    int num[26] = {0};
    int j=0;
    while(pup[j]!='\0')
    {
        int a = pup[j];
        if(num[a-97])
        {
            printf("Yes");
            return 0;
        }
        else num[a-97]++;

        j++;
    }
    printf("No");
    return 0;
}

#include <stdio.h>
#include <string.h>

char s[100005];
int mark[10000];
int main(){
	int n;
	while (scanf("%d", &n) != EOF){
		getchar();
		gets(s);
		for (int i = 'a'; i <= 'z';i++){
			mark[i] = 0;
		}
		for (int i = 0; i < n; i++){
			mark[s[i]]++;
		}
		int sigh = 0;
		for (int i = 'a'; i <= 'z'; i++){
			if (mark[i] >= 2) sigh = 1;
			//printf("%d ",mark[i]);
		}
		if (sigh == 1) printf("Yes\n");
		else printf("No\n");
	}
}

#include<stdio.h>
#include<string.h>

int main()
{

    long int l=0,i,j,n,m;
 char a[100000+1];
    scanf("%ld",&n);
    scanf("%s",a);
    for(i=0;i<n;i++){
    for(j=i+1;j<n;j++){
          if(a[i]==a[j])
               {l++;}

        }}

if(l>0)

    printf("YES\n");
    else if(m==1)
        printf("YES\n");
    else
        printf("NO\n");

return 0;}

#include<stdio.h>
#include<string.h>

int main()
{

    long int l=0,i,j,n,m;
 char a[100000+1];
    scanf("%ld",&n);
    scanf("%s",a);
    m=strlen(a);
    for(i=0;i<27;i++){
    for(j=i+1;j<27;j++){
          if(a[i]==a[j])
               {l++;}

        }}

if(l>0)

    printf("YES\n");
    else if(m==1)
        printf("YES\n");
    else
        printf("NO\n");

return 0;}