#include<iostream>
#include<string.h>
#include<limits.h>
#include<float.h>
#pragma warning(disable : 4996)
#define SWC_PER_SEC 60
using namespace std;
int main() {
int sec, min, left;
scanf("%d", &sec);
while (sec>0)
{
min = sec / SWC_PER_SEC;
left = sec % SWC_PER_SEC;
printf("%d seconds is %d minutes ,%d seconds\n", sec, min, left);
scanf("%d", &sec);
}
printf("Done!\n");
return 0;
}