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:
[42, 128, 11, 71, 111, 115, 107, 109, 136]

Ex Output:
[21, 64, 34, 214, 334, 346, 322, 328, 68]


Ex Input:
[47, 53, 187, 31, 145]

Ex Output:
[142, 160, 562, 94, 436]


Ex Input:
[106, 152, 146, 173, 14, 163, 194, 174, 46]

Ex Output:

[53, 76, 73, 520, 7, 490, 97, 87, 23]