/***************************************************
Minutes and Seconds
Read in a time in seconds which will be input in
the form:
Time Elapsed 3112 Seconds
The number of seconds will always be a whole number.
Your program should write out the elapsed time in
minutes and seconds.
1) Remember that the "%" operator computes the
remainder
2) If s is a string, cin >> s skips leading
whitespace, then reads into the string all
characters up to the next whitespace character.
***************************************************/
#include <iostream>
#include <string>
using namespace std;
int main()
{
// read input
string junk;
cin >> junk; // reads the word "Time"
cin >> junk; // reads the word "Elapsed"
int t;
cin >> t;
// compute minutes and seconds
int m, s;
s = t % 60;
m = t / 60;
// write out result
cout << "Time Elapsed " << m << " minutes and "
<< s << " seconds" << endl;
return 0;
}