#include<stdio.h>
int main(){
int h,m,s;
printf("input current time\n");
scanf("%d %d %d",&h,&m,&s);
if(s==59){
s=0;
if(m==59){
m=0;
if(h==23){
h=0;
}else{
h+=1;
}
}else{
m+=1;
}
}else{
s+=1;
}
printf("%02d::%02d::%02d\n",h,m,s);
return 0;
}
~
int main(){
int h,m,s;
printf("input current time\n");
scanf("%d %d %d",&h,&m,&s);
if(s==59){
s=0;
if(m==59){
m=0;
if(h==23){
h=0;
}else{
h+=1;
}
}else{
m+=1;
}
}else{
s+=1;
}
printf("%02d::%02d::%02d\n",h,m,s);
return 0;
}
~