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: [124, 170, 94, 68, 148, 166, 41, 51, 126]

Output: [62, 85, 47, 34, 74, 83, 124, 154, 63]


Input: Consider Input: [135, 114, 162, 5]

Output: [406, 57, 81, 16]


Input: Consider Input: [95, 122, 93, 10, 95, 69, 138, 20]


Output: [286, 61, 280, 5, 286, 208, 69, 10]