// Program frame4 reads input values that represent the
// dimensions of a print from a file and calculates and 
// prints the amount of wood needed for a frame.

#include <iostream>
#include <fstream>
using namespace std;


int main ()
{  
    ifstream  din;          // input stream
    int  side;              // vertical dimension in centimeters
    int  top;               // horizontal dimension in centimeters
    int  centimetersOfWood; // centimeters of wood needed

    din.open("Frame.In");
    din  >> side  >> top;
    cout  << "Dimensions are " << top  << " and "
          << side  << "."  << endl;
    centimetersOfWood = top + top + side + side;
    cout  << "You need "  << centimetersOfWood
	        <<" centimeters of wood."  << endl;
    return 0;
}


