public static void main ( String [ ] args ) throws IOException {
  BufferedReader in = new BufferedReader ( new FileReader ( "B-large.in" ) ) ;
  PrintWriter out = new PrintWriter ( "b.out" ) ;
  int C = Integer . parseInt ( in . readLine ( ) ) ;
  for ( int i = 1 ;
  i <= C ;
  i ++ ) {
    StringTokenizer tz = new StringTokenizer ( in . readLine ( ) ) ;
    int N = Integer . parseInt ( tz . nextToken ( ) ) ;
    int M = Integer . parseInt ( tz . nextToken ( ) ) ;
    int A = Integer . parseInt ( tz . nextToken ( ) ) ;
    String ans ;
    if ( A > N * M ) {
      ans = "IMPOSSIBLE" ;
    }
    else {
      int a = A / M ;
      int b , c = 1 , d = M ;
      if ( a * M == A ) {
        b = 0 ;
      }
      else {
        a ++ ;
        b = a * d - A ;
      }
      ans = "0 0 " + a + " " + b + " " + c + " " + d ;
    }
    out . println ( "Case #" + i + ": " + ans ) ;
  }
  in . close ( ) ;
  out . close ( ) ;
}

public static void main ( String [ ] args ) throws IOException { BufferedReader in = new BufferedReader ( new FileReader ( " B - large . in " ) ) ; PrintWriter out = new PrintWriter ( " b . out " ) ; int C = Integer . parseInt ( in . readLine ( ) ) ; for ( int i = 1 ; i <= C ; i ++ ) { StringTokenizer tz = new StringTokenizer ( in . readLine ( ) ) ; int N = Integer . parseInt ( tz . nextToken ( ) ) ; int M = Integer . parseInt ( tz . nextToken ( ) ) ; int A = Integer . parseInt ( tz . nextToken ( ) ) ; String ans ; if ( A > N * M ) { ans = " IMPOSSIBLE " ; } else { int a = A / M ; int b , c = 1 , d = M ; if ( a * M == A ) { b = 0 ; } else { a ++ ; b = a * d - A ; } ans = "0 ▁ 0 ▁ " + a + " ▁ " + b + " ▁ " + c + " ▁ " + d ; } out . println ( " Case ▁ # " + i + " : ▁ " + ans ) ; } in . close ( ) ; out . close ( ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (type_identifier) dimensions: (dimensions)) name: (identifier))) (throws (type_identifier)) body: (block (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (object_creation_expression type: (type_identifier) arguments: (argument_list (string_literal))))))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (string_literal))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (string_literal)))) alternative: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (identifier) right: (identifier)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier)) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal)) declarator: (variable_declarator name: (identifier) value: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier))) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (decimal_integer_literal)))) alternative: (block (expression_statement (update_expression (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (string_literal) right: (identifier)) right: (string_literal)) right: (identifier)) right: (string_literal)) right: (identifier)) right: (string_literal)) right: (identifier)))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (binary_expression left: (binary_expression left: (string_literal) right: (identifier)) right: (string_literal)) right: (identifier))))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))))