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: [31, 58, 25, 199, 168, 183, 80]
Example Output: [94, 29, 76, 598, 84, 550, 40]

Example Input: [81, 4, 27, 19, 104, 4, 103, 169, 77]
Example Output: [244, 2, 82, 58, 52, 2, 310, 508, 232]

Example Input: [117, 8, 193, 4, 33, 97, 135, 83, 34]
Example Output:
[352, 4, 580, 2, 100, 292, 406, 250, 17]