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: [72, 83, 65]

Output: [36, 250, 196]


Input: Consider Input: [123, 19, 66, 21]

Output: [370, 58, 33, 64]


Input: Consider Input: [124, 168, 121, 15, 128, 134, 69, 70, 137]


Output: [62, 84, 364, 46, 64, 67, 208, 35, 412]