#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b,c;
cin>>a>>b>>c;
cout<<7-a+7-b+7-c;
return 0;
}
#include <bits/stdc++.h>
#define ll long long
#define vll vector<ll>
#define vpp vector<pair<pair<ll, ll>, ll>>
#define vp vector<pair<ll, ll>>
#define mk make_pair
#define pb push_back
#define IOS ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0)
#define N 1000000007
using namespace std;


void fun()
{
    // code begins
    ll a,b,c;cin>>a>>b>>c;
    ll k = 0;
    if( 2*a == b+c)
        k = 1;
    if( 2*b == a+c)
        k = 1;
    if( 2*c == a+b)
        k = 1;
    if(k)
    cout<<"Yes";
    else
    cout<<"No";
}


int main()
{
#ifndef ONLINE_JUDGE
    freopen("input.txt", "r", stdin);
    freopen("output.txt", "w", stdout);
#endif
    IOS;
    ll t; t = 1;
    //cin >> t;
    for (ll i = 1; i <= t; i++)
        fun();
}