Result

WA

Duration

1194ms

Code [DL]

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

stdin

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

stdout

stderr

/tmp/A.java:3: error: ';' expected
    for(Scanner s=new Scanner(System.in);c<99;)if(s.nextInt()%8%3<2)System.out.print("1")else 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