a = int(input())b = int(input())c = int(input()) k = 4*((a + b + c)//8+1)print(k)
16 18 20
28
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!