#include <iostream>
#include <math.h>
#include <iostream>
#include <math.h>
using namespace std;
int main()
{
float x, y;
for (x = -2; x <= 2; x=x + 0.2)
{
if (x < -1)
{
y = log(-x);
cout << y << "\n";
}
if ((x <= 1) && (x >= 1))
{
y = (x * x) - 1;
cout << y << "\n";
}
if (x > 1)
{
y = (x * x * x) - 1;
cout << y << "\n";
}
}
return 0;
}