import math

a, b, C = list(map(int, input().split()))

rad = C / 180 * math.pi

h = b * math.sin(rad)

S = a * h / 2

c = math.sqrt(h**2 + (a-b*math.cos(rad))**2)

L = a + b + c

print((S, L, h))
import math



a, b, C = list(map(float, input().split()))

C = C / 180 * math.pi  # convert to radian



h = b * math.sin(C)

S = a * h / 2

c = math.sqrt((a - b * math.cos(C)) ** 2 + h ** 2)

L = a + b + c



print(S)

print(L)

print(h)



import math

a, b, C = list(map(int, input().split()))
rad = C / 180 * math.pi
h = b * math.sin(rad)
S = a * h / 2
c = math.sqrt(h**2 + (a - b * math.cos(rad)) ** 2)
L = a + b + c
print((S, L, h))

import math

a, b, C = list(map(float, input().split()))
C = C / 180 * math.pi  # convert to radian
h = b * math.sin(C)
S = a * h / 2
c = math.sqrt((a - b * math.cos(C)) ** 2 + h**2)
L = a + b + c
print(S)
print(L)
print(h)

-a, b, C = list(map(int, input().split())) -rad = C / 180 * math.pi -h = b * math.sin(rad) +a, b, C = list(map(float, input().split())) +C = C / 180 * math.pi  # convert to radian +h = b * math.sin(C) -c = math.sqrt(h**2 + (a - b * math.cos(rad)) ** 2) +c = math.sqrt((a - b * math.cos(C)) ** 2 + h**2) -print((S, L, h)) +print(S) +print(L) +print(h)