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: [126, 112, 115, 75, 189, 131, 185, 194]
Example Output: [63, 56, 346, 226, 568, 394, 556, 97]

Example Input: [112, 187]
Example Output: [56, 562]

Example Input: [34, 86, 74, 135, 157, 47, 4]
Example Output:
[17, 43, 37, 406, 472, 142, 2]