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: 01/10/1668, input_format=mm/dd/yyyy

Output: 10/01/1668


Input: Consider Input: 05/08/1891, input_format=mm/dd/yyyy

Output: 08/05/1891


Input: Consider Input: 07/03/1699, input_format=mm/dd/yyyy


Output: 03/07/1699