static void exec ( Scanner in , PrintStream out ) {
  long N = in . nextLong ( ) ;
  int min = LongStream . rangeClosed ( 1 , ( long ) Math . sqrt ( N ) ) . filter ( A -> N % A == 0 ) . mapToInt ( A -> F ( A , N / A ) ) . min ( ) . getAsInt ( ) ;
  out . println ( min ) ;
}

static void exec ( Scanner in , PrintStream out ) { long N = in . nextLong ( ) ; int min = LongStream . rangeClosed ( 1 , ( long ) Math . sqrt ( N ) ) . filter ( A -> N % A == 0 ) . mapToInt ( A -> F ( A , N / A ) ) . min ( ) . getAsInt ( ) ; out . println ( min ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier)) (formal_parameter type: (type_identifier) name: (identifier))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (method_invocation object: (method_invocation object: (method_invocation object: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal) (cast_expression type: (integral_type) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))))) name: (identifier) arguments: (argument_list (lambda_expression parameters: (identifier) body: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (decimal_integer_literal))))) name: (identifier) arguments: (argument_list (lambda_expression parameters: (identifier) body: (method_invocation name: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (identifier))))))) name: (identifier) arguments: (argument_list)) name: (identifier) arguments: (argument_list)))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))))))