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: [178, 118, 116, 84, 82, 175, 23, 14]

Output: [89, 59, 58, 42, 41, 526, 70, 7]


Input: Consider Input: [57, 199, 62, 20, 167, 98]

Output: [172, 598, 31, 10, 502, 49]


Input: Consider Input: [31, 175, 180, 30, 60, 22, 124, 4, 20]


Output: [94, 526, 90, 15, 30, 11, 62, 2, 10]