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: [17, 75, 66, 49]
Example Output: [52, 226, 33, 148]

Example Input: [41, 66, 59]
Example Output: [124, 33, 178]

Example Input: [40, 147, 118, 132, 68]
Example Output:
[20, 442, 59, 66, 34]