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

#define ll long long
//~ #define endl '\n'

void solve(){
	int a[3];
	cin>>a[0]>>a[1]>>a[2];
	for(int i = 0; i<3; i++){
		if(a[i] == a[(i + 1)%3] && a[i] != a[(i + 2)%3]){
			cout<<"Yes"<<endl;
			return;
		}
	}
	cout<<"No"<<endl;
}

int main(){
	ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
	int t = 1;// cin>>t;
	while(t--){
		solve();
	}
	return 0;
}

#include <bits/stdc++.h>
#define rep(i, a, b) for (int i = (int)(a); i < (int)(b); ++i)
using namespace std;

int main()
{
    int n, k;
    cin >> n >> k;

    if (n % k == 0)
    {
        std::cout << 0 << endl;
        return 0;
    }
    std::cout << 1 << endl;

    return 0;
}