from __future__ import print_function
import math
try: raw_input
except: raw_input = input

lat = float(raw_input())
lng = float(raw_input())
ref = float(raw_input())
print()

slat = math.sin(math.radians(lat))
print(% slat)
print(% (lng-ref))
print()
print()

for h in range(-6, 7):
  hra = 15 * h
  hra -= lng - ref
  hla = math.degrees(math.atan(slat * math.tan(math.radians(hra))))
  print(% (h, hra, hla))