// practicing some simple conditionals
#include <iostream>
using namespace std;

int main() {
int a, b, z;
cout << "Enter two integers: " << endl;
cin >> a >> b;
z = 3*(a < b ? a+1:b+1) +2;
cout << z << endl;
cout << "The greater of a and b is " << (a > b ? a:b) << endl;
cout << "Are they equal " << (a == b ? "Yes" : "No");

}
