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.

Example Input: [99, 197, 64, 36, 66, 16, 77]
Example Output: [298, 592, 32, 18, 33, 8, 232]

Example Input: [62, 140, 90, 96, 167]
Example Output: [31, 70, 45, 48, 502]

Example Input: [135, 181, 2, 39, 149, 54, 43, 184, 169]
Example Output:
[406, 544, 1, 118, 448, 27, 130, 92, 508]