#include <stdio.h>
int main(void){
    const trans=60;
    int time=0;
    int hour;
    int minutes;
    puts("Enter your time cal in minutes:");
    scanf("%d",&time);
    while(time>0){
        hour=time/trans;
        minutes=time-trans*hour;
        printf("The time is %d hours and %d minutes.\n",hour,minutes);
        puts("Enter your time cal in minutes:");
        scanf("%d",&time);
    }

}