Description: Detective Holmes received a strange note: "we meet it! 3485djDkxh4hhGE 2984akDfkkkkggEdsb s& hgsfdk d& Hyscvnm". The detective soon understood, note strange code is actually the appointment "14:04 Thursday", because the first in front of two strings of the same capital English letters (case distinction) is the fourth letter ' D' , delegates Thursday second is the ' of the same characters E', it was the fifth English letters, fourteenth hours a day in (and 0 day to 23 points by the numbers 0 to 9, and the capital letter A to N) behind the two string first on the same English letter ' s' appears in the fourth position (starting from 0 count) on fourth minutes, representative. Now given the two string, please help Holmes decoded by appointment.
Input format:
Input in the 4 row are 4 non empty, does not contain spaces, and the length of not more than 60 characters.
Output format:
Output time in a row, the format of "DAY HH:MM", where "DAY" is 3 ch
To Search:
File list (Check if you may need any files):
no_1014
.......\bin
.......\...\Debug
.......\...\.....\no_1014.exe
.......\no_1014.c
.......\no_1014.cbp
.......\no_1014.depend
.......\no_1014.layout
.......\obj
.......\...\Debug
.......\...\.....\no_1014.o