nums = list(map(int, input().split(","))) n = len(nums) res = [] if (not nums or n < 3): print([]) exit(0) nums.sort() for i in range(n): if (nums[i] > 0): print(res) exit(0) if (i > 0 and nums[i] == nums[i - 1]): continue left = i + 1 right = n - 1 while __________: if nums[i] + nums[left] + nums[right] == 0: res.append([nums[i], nums[left], nums[right]]) while left < right and nums[left] == nums[left + 1]: left = left + 1 while __________: right = right - 1 left = left + 1 right = right - 1 elif nums[i] + nums[left] + nums[right] > 0: right = right - 1 else: __________ print(res)