#include <iostream>
#include <iomanip>
#include <string>
#include <sstream>
int main() {
// Step 1: Declare variables
std::string hexString;
unsigned int decimalValue;
// Step 2: Input a hexadecimal string
std::cout << "Enter a hexadecimal number: ";
std::cin >> hexString;
// Step 3: Convert hexadecimal string to decimal value
std::stringstream ss;
ss << std::hex << hexString;
ss >> decimalValue;
// Step 4: Output the decimal value
std::cout << "Decimal equivalent: " << decimalValue << std::endl;
return 0;
}