print((lambda a, b, c: a + b + c + (a**2 + b**2 + c**2)**0.5)(int(input()), int(input()), int(input())))
3 4 12
32.0
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!