#include <iostream>
using namespace std;
int oddify(int x) {
if(x%2 == 0) {
return x-1;
}
throw "Problem!";
}
int main()
{
int x;
cout << "Enter an integer: ";
cin >> x;
try {
x=oddify(x);
} catch(const char *ex) {
cerr << "An exception happened: " << ex << endl;
return -1;
}
cout << "The odd version of your number is: " << x << endl;
return 0;
}