#!/usr/bin/python3
import math

def print_trig(theta):
	print(f"theta = {theta:.16f}")
	print(f"sin(theta) = {math.sin(theta):.16f}")
	print(f"cos(theta) = {math.cos(theta):.16f}")
	print(f"tan(theta) = {math.tan(theta):.16f}")

def main():

	try:
		theta = float(input("Dwse gwnia θ (0<θ<π/2): "))
		
		if theta<=0 or theta>=math.pi/2:
			raise ValueError("prepei 0<θ<π/2")
			return

		print_trig(theta)

	except Exception as e:
		print(f"Error {e}")
		exit(1)

if __name__=="__main__":
	main()
