public int METHOD_1 ( int n ) { char [ ] a = ( STRING_1 + n ) . METHOD_2 ( ) ; if ( ! ( METHOD_3 ( a ) ) ) return - 1 ; long tmp = 0 ; for ( char VAR_1 : a ) tmp = ( ( tmp * INT_1 ) + VAR_1 ) - CHAR_1 ; return tmp < ( VAR_2 ) ? ( ( int ) ( tmp ) ) : - 1 ; }

public int METHOD_1 ( int n ) { char [ ] a = ( STRING_1 + n ) . METHOD_2 ( ) ; if ( ! ( METHOD_3 ( a ) ) ) return - 1 ; long tmp = 0 ; for ( char VAR_1 : a ) tmp = ( ( tmp * INT_1 ) + VAR_1 ) - CHAR_1 ; return tmp <= ( VAR_2 ) ? ( ( int ) ( tmp ) ) : - 1 ; }
