public static void main ( String [ ] args ) {
  Scanner input = new Scanner ( System . in ) ;
  String s = input . next ( ) ;
  char x = '|' , y = '+' , z = '=' ;
  long a = 0 , b = 0 , c = 0 , p = 0 , e = 0 ;
  int i ;
  for ( i = 0 ;
  i < s . length ( ) ;
  i ++ ) {
    if ( s . charAt ( i ) == y ) {
      p ++ ;
    }
    else if ( s . charAt ( i ) == z ) {
      e ++ ;
    }
    else if ( s . charAt ( i ) == x && p == 0 && e == 0 ) {
      a ++ ;
    }
    else if ( s . charAt ( i ) == x && p > 0 && e == 0 ) {
      b ++ ;
    }
    else if ( s . charAt ( i ) == x && p > 0 && e > 0 ) {
      c ++ ;
    }
  }
  if ( a + b == c ) {
    System . out . println ( s ) ;
  }
  else if ( Math . abs ( ( a + b ) - c ) == 2 ) {
    if ( a + b > c ) {
      if ( a > b && a > 1 ) a -- ;
      else b -- ;
      c ++ ;
    }
    else {
      a ++ ;
      c -- ;
    }
    for ( i = 0 ;
    i < a ;
    i ++ ) System . out . print ( "|" ) ;
    System . out . print ( "+" ) ;
    for ( i = 0 ;
    i < b ;
    i ++ ) System . out . print ( "|" ) ;
    System . out . print ( "=" ) ;
    for ( i = 0 ;
    i < c ;
    i ++ ) System . out . print ( "|" ) ;
    System . out . print ( "\n" ) ;
  }
  else {
    System . out . println ( "Impossible" ) ;
  }
}

public static void main ( String [ ] args ) { Scanner input = new Scanner ( System . in ) ; String s = input . next ( ) ; char x = ' | ' , y = ' + ' , z = ' = ' ; long a = 0 , b = 0 , c = 0 , p = 0 , e = 0 ; int i ; for ( i = 0 ; i < s . length ( ) ; i ++ ) { if ( s . charAt ( i ) == y ) { p ++ ; } else if ( s . charAt ( i ) == z ) { e ++ ; } else if ( s . charAt ( i ) == x && p == 0 && e == 0 ) { a ++ ; } else if ( s . charAt ( i ) == x && p > 0 && e == 0 ) { b ++ ; } else if ( s . charAt ( i ) == x && p > 0 && e > 0 ) { c ++ ; } } if ( a + b == c ) { System . out . println ( s ) ; } else if ( Math . abs ( ( a + b ) - c ) == 2 ) { if ( a + b > c ) { if ( a > b && a > 1 ) a -- ; else b -- ; c ++ ; } else { a ++ ; c -- ; } for ( i = 0 ; i < a ; i ++ ) System . out . print ( " | " ) ; System . out . print ( " + " ) ; for ( i = 0 ; i < b ; i ++ ) System . out . print ( " | " ) ; System . out . print ( " = " ) ; for ( i = 0 ; i < c ; i ++ ) System . out . print ( " | " ) ; System . out . print ( " \n " ) ; } else { System . out . println ( " Impossible " ) ; } }
(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: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (field_access object: (identifier) field: (identifier)))))) (local_variable_declaration type: (type_identifier) 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: (character_literal)) declarator: (variable_declarator name: (identifier) value: (character_literal)) declarator: (variable_declarator name: (identifier) value: (character_literal))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal)) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal)) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal)) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal)) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier))) (for_statement init: (assignment_expression left: (identifier) right: (decimal_integer_literal)) condition: (binary_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))) update: (update_expression (identifier)) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))) right: (identifier))) consequence: (block (expression_statement (update_expression (identifier)))) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))) right: (identifier))) consequence: (block (expression_statement (update_expression (identifier)))) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))) right: (identifier)) right: (binary_expression left: (identifier) right: (decimal_integer_literal))) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))) consequence: (block (expression_statement (update_expression (identifier)))) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))) right: (identifier)) right: (binary_expression left: (identifier) right: (decimal_integer_literal))) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))) consequence: (block (expression_statement (update_expression (identifier)))) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))) right: (identifier)) right: (binary_expression left: (identifier) right: (decimal_integer_literal))) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))) consequence: (block (expression_statement (update_expression (identifier))))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier))) consequence: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (identifier))))) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (identifier)))) right: (decimal_integer_literal))) consequence: (block (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier))) consequence: (block (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))) consequence: (expression_statement (update_expression (identifier))) alternative: (expression_statement (update_expression (identifier)))) (expression_statement (update_expression (identifier)))) alternative: (block (expression_statement (update_expression (identifier))) (expression_statement (update_expression (identifier))))) (for_statement init: (assignment_expression left: (identifier) right: (decimal_integer_literal)) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal)))) (for_statement init: (assignment_expression left: (identifier) right: (decimal_integer_literal)) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal)))) (for_statement init: (assignment_expression left: (identifier) right: (decimal_integer_literal)) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal))))) alternative: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal)))))))))