print maximum rank