1)
x = int(input())
if x > 0:
print(1)
if x < 0:
print(-1)
if x == 0:
print(0)
2)
from math import sin
print(sin(x)**2)
print(1 + 2 * sin(x ** 2))
1)
x = int(input())
if x > 0:
print(1)
if x < 0:
print(-1)
if x == 0:
print(0)
2)
from math import sin
x = int(input())
if x > 0:
print(sin(x)**2)
if x < 0:
print(1 + 2 * sin(x ** 2))
if x == 0:
print(0)