import java.util.*;
import java.math.*;
class Main
{
public static void main
(String[] args
) {
Scanner in
= new Scanner
(System.
in); double f
= (Math.
sqrt(5)+1)/2; double d = in.nextDouble();
double b
= d
/ Math.
sqrt(1 + f
* f
); double a = b * f;
System.
out.
print(a
+ " " + b
); }
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5tYXRoLio7CiAKY2xhc3MgTWFpbgp7CglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncykKCXsKCQlTY2FubmVyIGluID0gbmV3IFNjYW5uZXIoU3lzdGVtLmluKTsKCQlkb3VibGUgZiA9IChNYXRoLnNxcnQoNSkrMSkvMjsKCQlkb3VibGUgZCA9IGluLm5leHREb3VibGUoKTsKCQlkb3VibGUgYiA9IGQgLyBNYXRoLnNxcnQoMSArIGYgKiBmKTsKCQlkb3VibGUgYSA9IGIgKiBmOwoJCVN5c3RlbS5vdXQucHJpbnQoYSArICIgIiArIGIpOwoJfQp9