#include <iostream>
#include<cmath>
using namespace std;
double f(double x)
{
return log(1 + x*x - sin(x)) - pow(3, cos(2*x));
}
double findRoot(double a, double b, double e)
{
while (b - a > e)
{
if (f(a) * f((b + a) / 2) == 0)
break;
else if (f(a) * f((b + a) / 2) > 0)
a = (b + a) / 2;
else
b = (b + a) / 2;
}
return (b + a) / 2;
}
int main()
{
double e;
cin >> e;
cout << findRoot(-4, -3, e) << endl;
cout << findRoot(-3, -2, e) << endl;
cout << findRoot(-1, 0, e) << endl;
cout << findRoot(1, 2, e) << endl;
cout << findRoot(2, 3, e) << endl;
cout << findRoot(3, 4, e) << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZTxjbWF0aD4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmRvdWJsZSBmKGRvdWJsZSB4KQp7CglyZXR1cm4gbG9nKDEgKyB4KnggLSBzaW4oeCkpIC0gcG93KDMsIGNvcygyKngpKTsKfQoKZG91YmxlIGZpbmRSb290KGRvdWJsZSBhLCBkb3VibGUgYiwgZG91YmxlIGUpCnsKCXdoaWxlIChiIC0gYSA+IGUpCgl7CgkJaWYgKGYoYSkgKiBmKChiICsgYSkgLyAyKSA9PSAwKQoJCQlicmVhazsKCQllbHNlIGlmIChmKGEpICogZigoYiArIGEpIC8gMikgPiAwKQoJCQlhID0gKGIgKyBhKSAvIDI7CgkJZWxzZQoJCQliID0gKGIgKyBhKSAvIDI7Cgl9CglyZXR1cm4gKGIgKyBhKSAvIDI7Cn0KCmludCBtYWluKCkgCnsKCWRvdWJsZSBlOwoJY2luID4+IGU7Cgljb3V0IDw8IGZpbmRSb290KC00LCAtMywgZSkgPDwgZW5kbDsKCWNvdXQgPDwgZmluZFJvb3QoLTMsIC0yLCBlKSA8PCBlbmRsOwoJY291dCA8PCBmaW5kUm9vdCgtMSwgMCwgZSkgPDwgZW5kbDsKCWNvdXQgPDwgZmluZFJvb3QoMSwgMiwgZSkgPDwgZW5kbDsKCWNvdXQgPDwgZmluZFJvb3QoMiwgMywgZSkgPDwgZW5kbDsKCWNvdXQgPDwgZmluZFJvb3QoMywgNCwgZSkgPDwgZW5kbDsKCXJldHVybiAwOwp9