for i in range(100,1000): bai=i//100 shi=i%100//10 ge=i%10 if bai**3+shi**3+ge**3==i: print(i,end=" ")