// Name: Convenience store owner (conva.cpp)
// Version: 1.0 (ANSI C++ version)
// Purpose: Convert the price of an item in U.S. pennies per pound to 
//   Canadian dollars per kilogram.

#include <iostream>
using namespace std;

//------------------------ calculator object ---------------------------------

void main()
{

double theOutput;      // Answer displayed to the user   
double dollarsPerKg;   // Item's cost in Canadian dollars per kilogram
int theInput;          // Input entered by the user
int penniesPerLb;      // Price in U.S. pennies per pound of an item


//-------------------- input object ---------------------------------------
//  Get the input. 
cin >> theInput;
//------------------- end of input object --------------------------------

penniesPerLb = theInput;

//-------------------- computing object -----------------------------------
const double kgPerLb = .4536;        // Number of kilograms in a pound
const double dollarsCanPerUS = 1.26; // Number of Canadian dollars per
                                     //   U.S. dollar (exchange rate)
const int penniesPerDollar = 100;    // Number of pennies per U.S. dollar
 
dollarsPerKg = penniesPerLb/kgPerLb * dollarsCanPerUS/penniesPerDollar;
//-------------------- end of computing object ---------------------------

theOutput = dollarsPerKg;

//-------------------- output object --------------------------------------
// Display the answer.
cout << theOutput << endl;
//------------------- end of output object --------------------------------

}
//---------------------- end of calculator object ----------------------------
