import math
x = float(input())
y = 5 * pow(x,3) + abs(math.tan(x))
print(y)
k = (math.sin(x) + pow(x,1/3))/(math.tan(x)+math.sqrt(7*x))
print(k)
import math
x = float(input())
y = 5 * pow(x,3) + abs(math.tan(x))
print(y)
import math
x = float(input())
k = (math.sin(x) + pow(x,1/3))/(math.tan(x)+math.sqrt(7*x))
print(k)