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:
[13, 86, 135, 9, 45, 94, 5]

Ex Output:
[40, 43, 406, 28, 136, 47, 16]


Ex Input:
[78, 129, 25, 21]

Ex Output:
[39, 388, 76, 64]


Ex Input:
[130, 190, 9, 174, 66, 35, 19, 191]

Ex Output:

[65, 95, 28, 87, 33, 106, 58, 574]