📅  最后修改于: 2022-03-11 14:46:39.346000             🧑  作者: Mango
x, y, z, n = int(input()), int(input()), int(input()), int(input())
print ([[a,b,c] for a in range(0,x+1) for b in range(0,y+1) for c in range(0,z+1) if a + b + c != n ])