@@ -0,0 +1,610 @@
+import java.util.Scanner;%0A%0Apublic class Main %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A%0A        Scanner sc = new Scanner(System.in);%0A%0A        int%5B%5D okList = %7B0, 1, 2, 3, 5, 7, 8, 9%7D;%0A%0A        while (true) %7B%0A%0A            int n = sc.nextInt();%0A%0A            if (n == 0 ) %7B%0A                break;%0A            %7D%0A%0A            long newRoomNumber = 0;%0A            long position = 1;%0A%0A            while (0 %3C n) %7B%0A%0A                newRoomNumber += position * okList%5Bn %25 8%5D;%0A                position *= 10;%0A                n /= 8;%0A%0A            %7D%0A%0A            System.out.println(newRoomNumber);%0A%0A        %7D%0A%0A    %7D%0A%0A%7D%0A

Create : 0208