public static void solve ( ) throws IOException {
  int a = nextInt ( ) ;
  int b = nextInt ( ) ;
  int c = nextInt ( ) ;
  a /= 1 ;
  b /= 2 ;
  c /= 4 ;
  printWriter . println ( Math . min ( a , Math . min ( b , c ) ) * 7 ) ;
}

public static void solve ( ) throws IOException { int a = nextInt ( ) ; int b = nextInt ( ) ; int c = nextInt ( ) ; a /= 1 ; b /= 2 ; c /= 4 ; printWriter . println ( Math . min ( a , Math . min ( b , c ) ) * 7 ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters) (throws (type_identifier)) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation name: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (decimal_integer_literal))) (expression_statement (assignment_expression left: (identifier) right: (decimal_integer_literal))) (expression_statement (assignment_expression left: (identifier) right: (decimal_integer_literal))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier) (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier) (identifier))))) right: (decimal_integer_literal)))))))