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.

[Q]: [199, 114, 134, 185, 182, 111, 144]
[A]: [598, 57, 67, 556, 91, 334, 72]


[Q]: [160, 110, 69, 183, 6]
[A]: [80, 55, 208, 550, 3]


[Q]: [200, 89, 115, 140, 68, 40, 188, 85, 72]
[A]:
[100, 268, 346, 70, 34, 20, 94, 256, 36]