﻿from math import *

def hyp(a, b):
    c = sqrt(a**2 + b**2)
    return c

def per(a, b):
    p = a + b + hyp(a, b)
    return p
