Result

AC

Duration

648ms

Code [DL]

for i in range(30) :
	print(input().split("__")[0].count('|'))

stdin

||__|___||
|__|_||||_
|_|||_||||
|______|||
||||_|||__
||_|__|||_
||_|||__||
|||||_||||
|_||||_|||
|||_|_|||_
|__|___|_|
||||_||___
|||_|_|_||
|____|_|||
||____|_|_
|_|__|_|__
|_|_|___||
||_|||___|
|____|__|_
|__||_|__|
||___||_||
||_|___||_
|_||_|||_|
|__|||___|
||________
||_|||||_|
||_|__|_|_
||_||||__|
||_||___|_
||_|_|_|||

stdout

2
1
8
1
7
3
5
9
8
7
1
6
7
1
2
2
3
5
1
1
2
3
7
1
2
8
3
6
4
7

stderr

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7fff241d7060 /* 7 vars */) = 0
12    execve("/usr/bin/python3", ["/usr/bin/python3", "/volume/CODE"], 0x55dd5432ed50 /* 7 vars */) = 0
11    execve("/bin/cat", ["cat", "-"], 0x55dd5432ed38 /* 7 vars */) = 0
11    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=11, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
12    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=12, si_uid=0, si_status=0, si_utime=2, si_stime=0} ---
10    +++ exited with 0 +++