import math a = 7 b = 8 c = 9 p = (a + b + c) / 2 s = math.sqrt(p * (p - a) * (p - b) * (p - c)) print(round(s, 2))