In this task, you are given a date in a particular format and you need to convert to another format. If given format is "dd/mm/yyyy" then convert to "mm/dd/yyyy". If given format is "mm/dd/yyyy" then convert to "dd/mm/yyyy".

Input: Consider Input: 27/12/1951, input_format=dd/mm/yyyy

Output: 12/27/1951


Input: Consider Input: 07/08/2003, input_format=dd/mm/yyyy

Output: 08/07/2003


Input: Consider Input: 11/15/1747, input_format=mm/dd/yyyy


Output: 15/11/1747