#Gepatinuzani topish

import math
import cmath

tomon1 = int(input("Uchnurchak 1-tomonini kiriting: "))
tomon2 = int(input("Uchnurchak 2-tomonini kiriting: "))

print(math.sqrt(tomon1 ** 2 + tomon2 ** 2))