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.

[EX Q]: [166, 73]
[EX A]: [83, 220]

[EX Q]: [172, 65, 47, 173, 42, 42, 38]
[EX A]: [86, 196, 142, 520, 21, 21, 19]

[EX Q]: [151, 39, 134, 11, 141, 121, 40, 25, 26]
[EX A]:
[454, 118, 67, 34, 424, 364, 20, 76, 13]