#include using namespace std; #define ll long long typedef pair P; #define M 1000000007 int main(){ ll a,b; cin>>a>>b; if(max(a,b)==min(a,b)*3) cout<