108_A. Palindromic Times
Tattah is asleep if and only if Tattah is attending a lecture. This is a well-known formula among Tattah's colleagues.

On a Wednesday afternoon, Tattah was attending Professor HH's lecture. At 12:21, right before falling asleep, he was staring at the digital watch around Saher's wrist. He noticed that the digits on the clock were the same when read from both directions i.e. a palindrome.

In his sleep, he started dreaming about such rare moments of the day when the time displayed on a digital clock is a palindrome. As soon as he woke up, he felt destined to write a program that finds the next such moment.

However, he still hasn't mastered the skill of programming while sleeping, so your task is to help him.

Input

The first and only line of the input starts with a string with the format "HH:MM" where "HH" is from "00" to "23" and "MM" is from "00" to "59". Both "HH" and "MM" have exactly two digits.

Output

Print the palindromic time of day that comes soonest after the time given in the input. If the input time is palindromic, output the soonest palindromic time after the input time.

Examples

Input

12:21


Output

13:31


Input

23:59


Output

00:00
```python
s=input()
if s[0]=="0":
    h=s[1]
else:
    h=s[:2]
if s[3]=="0":
    m=s[3]
else:
    m=s[3:]
def pallin(x,y):
    if len(x)==1:
        x="0"+x
    if len(y)==1:
        y="0"+y
    if x[0]==y[1] and x[1]==y[0]:
        return True
    else:
        return False
while(1):
    if int(m)+1==60:
        h=str((int(h)+1)%24)
        m=str(0)
    else:
        m=str(int(m)+1)
    if pallin(h,m):
        if len(h)==1:
            h="0"+h
        if len(m)==1:
            m="0"+m
        print(h+":"+m)
        break
    
        
    
```