In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.

Input: Consider Input: [54, 183]

Output: [27, 550]


Input: Consider Input: [74, 61, 194]

Output: [37, 184, 97]


Input: Consider Input: [46, 70, 73, 50, 190, 29, 153, 118]


Output: [23, 35, 220, 25, 95, 88, 460, 59]