a = int(input())b = int(input())c = int(input()) print(a * 45 + b * 15 + c * 10)
6 5 1
355
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!