#include #include int main(){ int N; char c[10]; int ure, minute, st; scanf("%i", &N); for(int i=0; i=24){ printf("NO"); } else if(minute >= 60){ printf("NO"); } else if(c[3] == '0' && c[4] == '0'){ printf("YES"); } else if(c[0] == c[3] && c[1] == c[4]){ printf("YES"); } else if(c[0] == c[4] && c[1] == c[3]){ printf("YES"); } else if(c[0]+1 == c[1] && c[0]+2 == c[3] && c[0]+3 == c[4]){ printf("YES"); } else if(st == 1024 || st == 2048 /*|| st == 4096 || st == 8192*/){//ker je to neveljaven zapis časa printf("YES"); } else{ printf("NO"); } printf("\n"); } return 0; }