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: [168, 145, 32, 62, 30, 71, 65, 157, 86]
Example Output: [84, 436, 16, 31, 15, 214, 196, 472, 43]

Example Input: [40, 191, 58, 24]
Example Output: [20, 574, 29, 12]

Example Input: [193, 100, 49, 84, 149, 77, 142, 154, 73]
Example Output:
[580, 50, 148, 42, 448, 232, 71, 77, 220]