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: [11, 3, 166, 97, 137, 182, 34, 109]

Output: [34, 10, 83, 292, 412, 91, 17, 328]


Input: Consider Input: [197, 15, 178, 81, 147]

Output: [592, 46, 89, 244, 442]


Input: Consider Input: [25, 51, 200, 133, 191, 6, 10, 44, 58]


Output: [76, 154, 100, 400, 574, 3, 5, 22, 29]