// editor2

import java.util.*;

public class LegCount{
    public static void main(String[]args){
        Scanner s = new Scanner(System.in);
         int nochic =s.nextInt();
         int nocow = s.nextInt();
         int nopig = s.nextInt();
         
         int input = nochic+nocow+nopig;
         
         if (input <=0 ) {
             System.out.println("Invalid Input");
         }
         else{
             
             int totchic = nochic*2;
             int totcow = nocow*4;
             int totpig = nopig *4;
             
             int totleg = totchic+ totcow+ totpig;
         }
         System.out.println(totleg);
         
    }
}