#include < iostream >
#include < math.h >
using namespace std;
int main()
{
int x;
float Y=0.0;
cout << "enter x :" << endl;
cin >>x;
// a
if ( x>=-6 )
Y = (x+3)/(x+10);
else if( x<-6 && x >= -12)
Y =x-2;
else if( x< -12 )
Y =(x-10)/(2+ pow(x,5));
cout << Y << endl;
cout << "enter x :" << endl;
cin >> x;
//b
if ( x>16 )
Y=x+3;
else if( x<=16 && x>=12 )
Y = 12+ pow(x,6) ;
else if (x<12)
Y =(x-10)/(x-20);
cout << Y << endl;
cout << "enter x :" << endl;
cin >> x;
//c
if(x>9)
Y = 10+pow(x,5);
else if (x>=9 && x<5)
Y = (x+12)/3;
else if(x<=5)
Y = x-10;
cout << Y << endl;
return 0;
}