#include <iostream>

int main() {
	const int DOLLAR = 100; //pennies per dollar
	const int RATE = 12; //in perecent
	int price = 0; //price of the product you are purchasing
	int total_price = 0;
	int cents = 0; //the amount of change left over
	
	std::cout << "Please enter the price of the product you are purchasing($): ";
	std::cin >> price;
	
	total_price = price * ( DOLLAR + RATE ); //using formula ( 1 + rate ) multiplied by 100
	
	std::cout << "After tax you owe " << total_price << " cents." << std::endl;
	
	cents = total_price % DOLLAR;
	total_price /= DOLLAR; //removing the cents
	
	std::cout << "After tax you owe " << total_price << " dollars and " << cents << " cents." << std::endl;
	
	return 0;
}