#include<bits/stdc++.h> #define ll long long #define endl "\n" #define mem(vis, num) memset(vis, num, sizeof(vis)); using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); double s = 0, f = 0, m = 0; double A = 0, B = 0; for(int i = 0; i <= 6; i++){ for(int j = 0; j < 60; j++){ for(int k = 0; k < 60; k++){ s = i * 30 * 60 + j * 0.5 * 60 + k * 0.5; f = j * 6 * 60 + k * 0.1 * 60; m = k * 360; A = min(fabs(f - s), fabs(360 * 60 - f + s)); B = min(fabs(f - m), fabs(360 * 60 - f + m)); if(A == 2 * B){ cout << i << "\t" << j << "\t" << k << "\t" << endl; } } } } return 0; }