#include<bits/stdc++.h> using namespace std; int main() { int x,n,sum=7,s=0,i; cin>>x>>n; x+=n; if(x>sum) { i=x-sum; cout<<i; } else { cout<<x; } }