#include <stdio.h>

int main() {
    int H, cont=0;
    scanf("%d", &H);
    for(int i=0; H>=60; i++){
        H=H-60;
        cont++;
    }
    printf("%d\n%d", cont, H);
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: