Help me in solving MVR problem,i cant understand whats wrong with this

My issue

My code

#include <iostream>
using namespace std;

int main() {
	// your code goes here
	int a,b,x,y,m,r;
	cin>>a>>b>>x>>y;
	m=a*2+b;
	r=x*2+y;
	if(m>r){
	    cout<<"Messi";
	}else if(r>m){
	    cout<<"Ronald";
	}else{
	    cout<<"Equal";
	}
	return 0;
}

Problem Link: MVR Problem - CodeChef

@anon95566079

You should try adding adding brackets to clarify the operation order.

Here is my code for reference.

# cook your dish here
a,b,x,y=map(int,input().split())
if( ((2*a)+b)>((2*x)+y) ):
    print('MESSI')
elif(((2*a)+b)<((2*x)+y)):
    print('Ronaldo')
else:
    print('EQUAL')