//注意输入输出的格式问题
#include <stdio.h>
int main()
{
int h,m;
scanf("%d:%d",&h,&m);
if((h==12&&m>0)||(h>12&&h<24))
{
h-=12;
int i;
if(m>0)
h+=1;
for(i=0; i<h; i++)
printf("Dang");
printf("\n");
}
else if(h==24)
h=0;
else
printf("Only %02d:%02d. Too early to Dang.\n",h,m);
return 0;
}
/*
//出错代码
#include <iostream>
#include <stdio.h>
using namespace std;
int main()
{
int hour,minute;
scanf("%d:%d",&hour,&minute);
int h=hour;
if(minute>0)h++;
if(h>12&&h<24)
{
for(int i=0;i<h-12;i++)cout<<"Dang";
cout<<endl;
}
else if(hour==23&&minute>0)
{
for(int i=0;i<12;i++)cout<<"Dang";
cout<<endl;
}
else if(hour==24&&minute==0)
{
printf("Olny 00:00. Too early to Dang.");
}
else
printf("Olny %02d:%02d. Too early to Dang.",hour,minute);
return 0;
}
*/