public static void main ( String [ ] $ ) {
  int n = new java . util . Scanner ( System . in ) . nextInt ( ) - 1 ;
  System . out . println ( ( n % 9 + 1 ) * ( int ) ( 10 / 9d * Math . pow ( 10 , n / 9 ) ) ) ;
}

public static void main ( String [ ] $ ) { int n = new java . util . Scanner ( System . in ) . nextInt ( ) - 1 ; System . out . println ( ( n % 9 + 1 ) * ( int ) ( 10 / 9d * Math . pow ( 10 , n / 9 ) ) ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (type_identifier) dimensions: (dimensions)) name: (identifier))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (method_invocation object: (object_creation_expression type: (scoped_type_identifier (scoped_type_identifier (type_identifier) (type_identifier)) (type_identifier)) arguments: (argument_list (field_access object: (identifier) field: (identifier)))) name: (identifier) arguments: (argument_list)) right: (decimal_integer_literal)))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (decimal_integer_literal))) right: (cast_expression type: (integral_type) value: (parenthesized_expression (binary_expression left: (binary_expression left: (decimal_integer_literal) right: (decimal_floating_point_literal)) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal) (binary_expression left: (identifier) right: (decimal_integer_literal)))))))))))))