a=int(input())b=int(input())c=int(input())print((a+b)*2-c)
10 5 8
22
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!