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 Input:
[192, 31, 107, 89, 146, 9]

Ex Output:
[96, 94, 322, 268, 73, 28]


Ex Input:
[86, 151, 153, 20]

Ex Output:
[43, 454, 460, 10]


Ex Input:
[110, 122, 80, 72, 150, 160, 136, 76, 154]

Ex Output:

[55, 61, 40, 36, 75, 80, 68, 38, 77]