#include<stdio.h> int main() { int a,b,c; while(scanf("%d",&a) != EOF)//按ctrl+z退出循环 { b=a/60; c=a-b*60; printf("%d %d\n",b,c); } return 0; }