a = float(input())S = float(input()) b = S / aP = 2 * (a + b) print(P)
4 20
18.0
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!