import math


def area_triangle(x, y, z):
    """ This function takes three sides of a triangle
        and calculate the area of triangle with Heron's formula"""
    s = (x + y + z) / 2
    area = math.sqrt(s*(s - x) * (s - y) * (s - z))
    return area