#include<iostream> using namespace std; int main() { int a=0; int b=0; cin>>a>>b; if((a+b)<=7)cout<<a+b<<endl; else { if (((a+b)%7)==0)cout<<7<<endl; else cout<<(a+b)%7<<endl; } return 0; }
#include<iostream> using namespace std; int main() { int a=0; int b=0; cin>>a>>b; if((a+b)<=7)cout<<a+b<<endl; else { if (((a+b)%7)==0)cout<<7<<endl; else cout<<(a+b)%7<<endl; } return 0; }