Result

WA

Duration

1931ms

Code [DL]

import java.util.*;interface A{static void main(String[]s){
    int c=0;
    for(Scanner s=new Scanner(System.in);c<99;){
        s.nextInt()%8%3<2 ? System.out.print("1") : c++;
    }
}
}

stdin

12
02
10
20
02
10
21
02
02
10
21
01
20
02
02
02
02
21
10
21
12
01
20
12
21
12
20
10
12
02
02
12
21
21
01
02
20
10
01
12
02
21
10
10
10
10
12
21
10
01
01
12
02
02
21
20
02
10
21
02
21
12
02
02
10
02
02
02
21
20
20
12
02
01
12
12
01
02
01
21
10
02
02
10
01
10
10
21
02
12
02
01
02
01
01
21
01
12
21
12
02
02
21
01
12
20
20
12
01
21
12
10
21
12
02
21
01
02
10
10
01
01
12
21
20
02
12
10
20
12
02
12
01
02
02
01
01
12
01
20
20
02
01
10
20
12
21
21
12
21
10
10
02
21
10
20
02
02
20
20
20
20
10
01
21
10
01
20
10
21
21
01
01
01
01
01
12
02
01
12
02
01
12
02
01
20
20
02
20
20
10
12
20
02
21
10
02
02
02
12
20
02
12
20
20
12
10
12
20
21
21
10
21
02
01
02
21
12
20
20
01
01
02
20
21
10
10
20
20
21
01
10
12
12
01
01
21
02
21
12
12
01
01
21
01
12
21
02
01
20
12
01
10
12
20
21
21
21
10
12
20
12
12
21
12
10
10
21
01
01
20
21
21
12
12
21
21
20
12
21
12
12
12
02
20
01
02
10
20
12
02
01
21
10
21
02
01
12
20
20

stdout

stderr

/tmp/A.java:4: error: not a statement
        s.nextInt()%8%3<2 ? System.out.print("1") : c++;
                          ^
1 error
Error: Could not find or load main class A
Caused by: java.lang.ClassNotFoundException: A
rm: can't remove '/tmp/A.class': No such file or directory

strace