#!/usr/bin/python3
import math
def parse_angle(s):
	s = s.replace('π', f'{math.pi}')
	try:
		 return eval(s)
	except:
		return None
def main():
	s = input("Δώσε μια γωνία θ στο διάστημα (0, π/2): ")
	theta = parse_angle(s)
	if theta is None:
		print("Μη έγκυρη γωνία.")
		return
	if 0 < theta < math.pi/2:
		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}")
	else:
		print("Η γωνία πρέπει να είναι αυστηρά στο διάστημα (0, π/2)")
if __name__=="__main__":
	main()
