# MAX_END3
def max_end3(nums):
  return [nums[0], nums[0], nums[0]] if nums[0]>nums[2] else [nums[2], nums[2], nums[2]]
# MAX_END3
def max_end3(nums):
  return [nums[0], nums[0], nums[0]] if nums[0]>nums[2] else [nums[2], nums[2], nums[2]]
# MAX_END3