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.

Example Input: [132, 76, 120, 19, 5]
Example Output: [66, 38, 60, 58, 16]

Example Input: [12, 157]
Example Output: [6, 472]

Example Input: [43, 161, 141, 15, 81, 49, 20, 158, 187]
Example Output:
[130, 484, 424, 46, 244, 148, 10, 79, 562]