INPUT FORMAT:
Input consists of 3 integers.
First input corresponds to the number of rows.
Second input corresponds to the number of columns.
Third input corresponds to the tree number.
Input consists of 3 integers.
First input corresponds to the number of rows.
Second input corresponds to the number of columns.
Third input corresponds to the tree number.
SAMPLE INPUT:
5
5
20
SAMPLE OUTPUT:
It is a mango tree
SOLUTION:
#include<iostream>
using namespace std;
int main()
{
int r,c,n;
cin>>r>>c>>n;
if(r*2 == n || r*(c-1) == n)
cout<<"It is a mango tree";
else
cout<<"It is not a mango tree";
}