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.

Input: Consider Input: [179, 192, 113, 153, 143, 5, 48]

Output: [538, 96, 340, 460, 430, 16, 24]


Input: Consider Input: [49, 15, 169, 160, 156]

Output: [148, 46, 508, 80, 78]


Input: Consider Input: [197, 44, 96, 64, 37, 70, 48, 187]


Output: [592, 22, 48, 32, 112, 35, 24, 562]