#include<bits/stdc++.h>
using namespace std;
int n;
int	i1,i2;
int main()
{
	cin>>n>>i1>>i2;
	cout<<i1+(i2-7);
	return 0;
}