A special birth date is D. Your task is to find the last palindrome date that comes before a date D.
You are given a date D in the string format. The date format is as follows:
Input format
Output format
For each test case, print the valid palindrome date in a new line. If there is no possible palindrome date that comes before D, then print -1.
Constraints
1≤T≤10000
For the only testcase, 29-11-1192 is the last palindrome date which comes before 21-08-2000.