//This program will compute the number of  days,hours and minutes from the time in minutes inserted 
#include <iostream>
using namespace std;

int main() {
	int time, day, remain_time, hour, minutes;
	cout << "This program will compute the number of  days,hours and minutes from the time in minutes inserted \n"; 
	// Here is for the user to type in the time
	cout << "Please type in the total time in minutes: "; 
	cin >> time;
	
	//line 13 to line 17 will calculate the days, hours and minutes
	day = time / ( 60 * 24);   
	remain_time = time % (60 * 24);
	hour = remain_time / 60;
	remain_time = remain_time % 60;
	minutes = remain_time % 60;
	
	// Now,the program will show the days, hours and minutes
	cout << "The total time convert to day, hour, minutes is "<< day; 
	cout << " day(s) "<< hour << " hour(s) and " << minutes << " minute(s)";
	return 0;
}
