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: [185, 144, 77]

Output: [556, 72, 232]


Input: Consider Input: [143, 113, 108, 17]

Output: [430, 340, 54, 52]


Input: Consider Input: [22, 134, 89, 113, 50, 99, 149, 77, 31]


Output: [11, 67, 268, 340, 25, 298, 448, 232, 94]