#include using namespace std; int main() { int n,H,M,a=0; cin>>n; while (a>H;cout<<":";cin>>M; a++; } if(H>24) cout<<"NO"<60) cout<<"NO"<