cls
input x
for ax=1 to x
for bx=1 to x
for cx=1 to x
for dx=1 to x
for ex=1 to x
f=(x-1)^5-ax^5-bx^4-cx^3-dx^2-ex
if f