#include <iostream>
#include <cmath>
using namespace std;
int main()
{
double a,b,c; cin >> a >> b >> c;
if(b * b - 4 * a * c == 0)
{
cout << "x1 = x2 = " << (-b) / (2 * a) << endl;
}
else if(b * b - 4 * a * c > 0)
{
cout << "x1 = " << (-b + sqrt(b * b - 4 * a * c)) / (2 * a);
cout << "x2 = " << (-b - sqrt(b * b - 4 * a * c)) / (2 * a);
}
else
{
cout << "x1 = " << (-b) / (2 * a) << " + " << sqrt(-(b * b - 4 * a * c)) / (2 * a) << "i" << endl;
cout << "x2 = " << (-b) / (2 * a) << " - " << sqrt(-(b * b - 4 * a * c)) / (2 * a) << "i" << endl;
}
return 0;
}
#include <iostream>
using namespace std;
bool is_prime(int num)
{
bool flag = true;
for(int i = 2; i < num; i++)
{
if(num % i == 0)
{
return false;
}
}
return true;
}
int main()
{
int num; cin >> num;
cout << is_prime(num) << endl;
return 0;
}
#include <iostream>
using namespace std;
int func(int n)
{
if(n == 1)
{
return 1;
}
else
{
return n * func(n - 1);
}
}
int main()
{
int a,b,c; cin >> a >> b >> c;
cout << func(a) + func(b) + func(c) << endl;
return 0;
}
#include <iostream>
#include <cmath>
using namespace std;
double e(double x)
{
return exp(x);
}
double sinh(double x)
{
return (e(x) - e(-x)) / 2;
}
int main()
{
double x; cin >> x;
cout << sinh(x) << endl;
return 0;
}