// hexadec.cpp: Hexidecimal and decimal input and output
#include <iostream>
using namespace std;

int main() {

cout << "Enter a hexidecimal integer x and a "
     << "deciaml integer y:\n" << endl;
int x, y;
cin >> hex >> x >> dec >> y;
cout << "0x" << hex << x << " = " << dec << x << endl;
int s = x+ y;
cout << "Their sum (hexadecimal): " << hex << s << endl;
cout << "Their sum (decimal): " << dec << s << endl;
return 0;
}
