var
i,n : integer;
begin
readln(n);
i:= 1;
while i <= n do
if (i*i*i) < n then
write(i,' ');
i:= i + 1;
end;
end.
var
i,n : integer;
begin
readln(n);
i:= 1;
while i <= n do
begin
if (i*i*i) < n then
write(i,' ');
i:= i + 1;
end;
end.