#include <bits/stdc++.h>
#define _GLIBCXX_DEBUG
#define vv(T) std::vector<std::vector<T>>
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()

using namespace std;
using ll = long long;

int		main(void)
{
	int n;
	cin >> n;
	
	vector<bool> seen(1'000'000'000);
	bool ans = true;
	for (int i = 0; i < n; ++i)
	{
		int a;
		cin >> a;
		if (seen[a])
			ans = false;
		seen[a] = true;
	}
	cout << (ans ? "YES" : "NO") << endl;
}


#include <bits/stdc++.h>
using namespace std;

int main()
{
    int a,b,ans=0,cnt=0;
    string s;
    cin>>a>>b;
    cin>>s;
    for(int i=0; i<a; i++)
    {
        if(s[i]-'0'<0||s[i]-'0'>9)
        {
            cout<<"No";
                return 0;
        }
    }
    if(s[a]!='-')
    {
        cout<<"No";
            return 0;
    }
    for(int i= a+1 ; i <a+b+1 ; i++)
    {
        if(s[i]-'0'<0||s[i]-'0'>9)
        {
            cout<<"No";
                return 0;
        }
    }
    cout<<"Yes";
    return 0;
}

