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: 07/08/2003, input_format=dd/mm/yyyy

Output: 08/07/2003


Input: Consider Input: 02/18/1935, input_format=mm/dd/yyyy

Output: 18/02/1935


Input: Consider Input: 28/04/1952, input_format=dd/mm/yyyy


Output: 04/28/1952


