
#include <iostream>
using namespace std;

string hora_textual(int, int, int);

int main() {
   int h, m, s;
   while (cin >> h >> m >> s) {
      cout << hora_textual(h, m, s) << endl;
   }
}
