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:
[128, 1, 55, 108]

Ex Output:
[64, 4, 166, 54]


Ex Input:
[69, 104, 199, 121, 84, 109, 141, 79, 10]

Ex Output:
[208, 52, 598, 364, 42, 328, 424, 238, 5]


Ex Input:
[128, 157, 76, 132, 167, 195, 143, 118, 133]

Ex Output:

[64, 472, 38, 66, 502, 586, 430, 59, 400]