#include <iostream>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <string>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <stdio.h>
using namespace std;
int MOD = 1000000007;
int main()
{
	int a, b, c;
	cin >> a >> b >> c;
	cout << 7 * 3 - (a + b + c) << endl;
	return 0;
}

#include<bits/stdc++.h>
#define ll long long 
using namespace std;
int  main()
{
    vector<int>vc(3);
    cin>>vc[0];
    cin>>vc[1];
    cin>>vc[2];
    sort(vc.begin(),vc.end());
    if(vc[2]-vc[1]==vc[1]-vc[0])
    {
    	cout<<"Yes";
	}
	else
	cout<<"No";
	return 0;
}