Which is the greatest 4 - figure digit in base 8

7777

just as 9999 is in base10