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]: [86, 164, 28, 152, 96, 81]
[EX A]: [43, 82, 14, 76, 48, 244]

[EX Q]: [36, 48]
[EX A]: [18, 24]

[EX Q]: [177, 74, 66, 121, 60, 7, 44, 23]
[EX A]:
[532, 37, 33, 364, 30, 22, 22, 70]