Result

WA

Duration

1193ms

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

02
12
12
01
20
12
12
01
10
21
01
10
01
12
01
20
01
21
21
01
01
01
02
12
12
12
12
12
02
20
20
21
01
12
20
20
21
02
10
10
12
10
10
12
21
12
21
02
01
12
21
12
01
21
21
12
01
20
20
20
12
01
12
10
21
20
10
12
12
02
12
01
10
01
02
12
20
21
01
02
02
12
01
20
01
20
01
02
20
12
02
20
12
01
21
01
01
12
12
01
10
21
12
12
01
01
12
12
12
21
10
01
20
01
21
01
12
12
12
01
12
20
12
01
12
12
21
10
21
20
12
12
02
12
12
20
12
01
12
21
12
01
10
10
01
20
01
01
20
01
20
02
01
12
02
10
01
21
21
10
01
12
20
21
10
01
01
01
12
12
20
10
20
21
21
10
12
12
12
21
12
20
01
20
12
01
10
12
21
02
20
02
10
02
01
20
20
10
12
21
01
01
10
21
01
02
01
12
21
20
21
21
21
01
20
02
01
21
01
20
12
10
01
12
02
10
20
02
12
02
01
20
10
12
12
02
01
01
02
20
21
21
20
20
21
02
20
20
10
20
21
12
12
01
01
01
12
20
21
12
12
12
01
20
10
12
01
02
01
20
10
10
20
02
01
10
01
01
12
01
10
01
10
10
10
02
10
01
01
20
02
10
01
21
20
12
02
20
21
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