from math import ceil n = input() x,y,r = n.split(" ") x = float(x) y = float(y) r = float(r) x = ceil((x*2)**0.5+(y*2)**0.5+r*2**0.5) print(x)