#include using namespace std; int main() { int N; cin >> N; string T=""; int C= N/720; N-=720*C; int M= N/360; N-=360*M; int S= N/180; N-=180*S; int R= N/30; N-=30*R; int O= N/6; N-=6*O; if(C>0) for(int i=0; i0) for(int i=0; i0) for(int i=0; i0) for(int i=0; i0) for(int i=0; i0) for(int i=0; i