10PRINT Consecutives
Statement
Goal
Your goal is to print the maximum number of consecutive repeats of the given character char in the string given. New lines need to be ignored when counting charactersInput
Line 1: A character char indicating the character you need to count.
Line 2: An integer N for the number of lines containing the 10PRINT.
Next N lines: The 10PRINT itself.
Line 2: An integer N for the number of lines containing the 10PRINT.
Next N lines: The 10PRINT itself.
Output
Line 1: The count of the biggest consecutive character char.
Constraints
1 < N < 100
Example
Input
/ 3 //\\\//\/\ \///\/\/// \////\\///
Output
4
Game modes
Reverse
Test cases
Starting out Test
Input
/
3
//\\\//\/\
\///\/\///
\////\\///
Output
4
Validator 1 Validator
Input
\
4
/\//\////\\/
\\/\\/\\\/\/
//\\/\/\\//\
\\//\/\\\/\\
Output
3
More lines, less characters Test
Input
\
19
/\
\/
\/
/\
\\
//
/\
//
/\
\\
\/
\/
/\
\\
//
\\
/\
\/
//
Output
4
Validator 2 Validator
Input
/
21
//
/\
/\
/\
//
/\
\/
\\
//
\\
/\
//
\/
//
//
//
\/
\\
//
//
\\
Output
7
Half the hundred Test
Input
\
50
/\/\/\\///\\\\/\/\/\/\\\/\\\/\\/\//\\/\\\\//\/////
\\\////\\/\/\\///\\/\\\\/\\/\\/\/\\\/\////\//\\\//
\////\/\/\\\//\//\\\/\\\//\\/\\/\/\/\\\\\/////\//\
\//\\////\\/\\///\\\\/\///\/\/\\\\/////\//\/\///\/
/\/\\\/\\/\\/\/\\\/\\//\\/\\/\\/\\/\///\/\\/\\//\\
\////////\\\\\/\\//\//\//\//\\\/\/\//\\\\/\///\\/\
\\////\\\/\//\\//\\/\\/\\\/\\/\/\//\/\\//\\\\//\//
\/\\/\\\\/\/\\\\\/\/\\//\\\/\\/\\/\\///\\/\\////\/
\\\///\/\\//\//\\/\\/\\/\\//\\///\\\\////\\\\\/\\/
\\///\//\///////\\\\\\\\\\/\/\/\///\\\\////\\/\\\/
/\\\\\/\//\//\\/\\/\\\\\\/\/\\/\/\//\/\/\\\//\\/\\
\////\//\\\\\///\\\/\\/\\/\/\/\\\\\/\/\/\//\\/\/\/
//\////\\\\/\\////\\/\//\\//\\//\\///\/\\///\//\//
\//\\\/\//\/\\\\/\//\/\\\\//\/\//\\\\\/\//////\\\/
//\//\/\\\//\\/\\//\//\//\/\/\\/\/\//\\\\//\\/\/\/
//\\/\\/\\///\////\\\///\///\/\/\\\\//\\\//\/\\//\
/\/\/\\/\/\//\/////\////\/\/\\/\/\\//\////\\/\\\\\
\//\\\///\\\\/\///\/\\/\\\//\/\////\////\\\//\/\//
\//\/\/\\/\\\\///\//\\\//////////\//\/\/\//\\/\/\/
//\///\///\/\\//\\\\\//\\\//\/\//\/\//\//\//\\/\\\
\\\\/\/\\\////\\////\/\\/\/\///\/\/\/////\\///\///
\/\/\////\/\//\\\\\\/\\\\\\\\\\///\\\///\\\\\\/\//
///\/\/\\\\\/\////\\/\//\/\/\\/\/\\\///\\//\\\\/\\
/\//\/\///\\\\/\\\/////////\\\\//\/\/\\\\\/\/\//\/
\\/\//\/\\/\//\/\//\\//\\\/\\\\/\\/\/\\/\\//\////\
\/\\/////\\/\\//\\\///\////\\\\/\\/\///////\/\\///
//\/\\/\\\\\/////\\\//\///\/\///\/\\/\/\\\/\\\/\/\
\/\\\/\\/\///\\/\\/\\\////\\\/\/\///\\/\//\\\\\\\/
/\///\/\\///\\//\///\\//\///\\\/\/\\/\/\/\///\\///
\\\\///////\\//\/\\\\\\\\\//\///\//\\//////\/\\\\\
\/\\\\/\\/\///\\/\/\\///\\/\/\\\\\/\\\\\//\\///\\/
\\\/\/\\/\/\\/////\\/\/\/\//////\\\\\\//\\/\\///\/
///\//\\\//\\\\\/\\\///\\/////\\\///\/\\\//\\//\\\
\/\/\//\\\/\\//\/\/\//\/\\\//\\///\\///\\////\//\/
/\\\/\/\/\\\///\\////\\\\//\///\\\\\//\/\//\//\\//
\/\\\\\/\/\//\\///\/\//\\/\\//\\/\\///\\\\\\///\\/
\\\\\/////\/\\\//\/\/\/\/////\/\\\/\/\\/\\/\\/\\\\
////////\\\\\\\/\\\///\//\/\//////\\////\///\\///\
\/\/\/\\//\\//\//\/\/\////\//\/\//\\\\/\////////\\
\\\\\//\\/\\\\\\\\\\///\\\\\/\//\////\////\/\/\//\
//\////\\\/\//\\\/\\\\\\\\\/\\\\\/\/\//////\////\/
\/\\///\/\////\/\\\\/\//\\//\\\/\\\//\/////\\////\
\\/\///////\///\\///\///\\////\///\\\\/\\//\/\//\\
\/\/\\////\\/\//\\/\/\\\/\\/\/\//\//\///\//\\\\//\
//\\/\////\/\\\//\\/\\\\//\\\///\\/\\\///\/\\\//\\
///\/\/\//\////\\\\\\\//\\/\//\\///\\/\\\\//////\/
\\\/\///\\/\\\////\/\\///\//\\//\\/\\//\\///\////\
\/\//\//\/\/\\\\\///\\/////\\//\\/\\/\\\///\\/\/\/
\\\//\/\/\/\///\\///\\//\\\\///\\\\\\/\\/\/\\/\\\/
/\/\//\\\////\\\\///\/\/\/\/\\///\/\/\\\\\/\\\////
Output
10
Validator 3 Validator
Input
/
51
//\\//\/\\\\\/\//\////\///\//\/\\\///\////\//\\\///
\//\//\//\\//\/\//\/\\////\\//\//\\\\//\\/\\/////\\
/\//\\//\\/\/\//\\/\\/\/\\\//\\///\//\//\///\\\\\//
/\\//\/\\/\\\\/\/\\//////\\\/\//\\////\///\\////\/\
\/\\\\\\/\\//\\//\//\///\\\\\\\\\\//\\////\///\/\/\
/\\///\/\//////////////\////\\/\//////\//\///\/\\//
//\/\//\////\////\//\\\////\\//\//\////\/\\///\/\/\
/\\\\\\\\///\//\\\/\/\\//\//\/\//\/\//\\\\\//\//\//
//\\///\\\\//\\//\\\/\\\\////\///////\\/\/\\////\\/
\/\///\\/\/\\\//\/\\/\\\//\\//\\/\/\\\////\\\\\\/\\
/\///\\\/\///\\/\\//\\\/\///\/\//////\//\\\///\\\\\
\\/\\/\\\/\\\\\\//\\/\\\\\/\\\\/\\////\//\\\///\\\\
\//////\//\//////\/\\/\\/\\//\//\/\\/\\\\/\\/\///\/
\\\//\\/\/\\/\\\////\//\\/\\\/\\/\\//\/\\\\\\\\///\
\\//\\//\\\\\/////\\/\/\\/\//\\\\\\/\////\\\\\\\\\/
/\////\//\\//\//\////\/\/\\////\\\/\///\\/\/\\//\\/
//\///\\\\\/\\\\///\/\\\///\\\/\\\\/////////\\\//\\
/\/////\\\//\\\\\\//\\/\\\/\//\\\\\\//\/\\\//\/\\\/
\\/\\/\/////\\//\//\//\\//////////\\//\/\\/\\/\/\/\
\/\//\\/\////\////\\\////\/\//\///\///\\/\\\\\\/\/\
//\/////////////\/\\\\/\\\\\\/\\\/\\\\\\\//\/\\/\\\
\/\///\/////\//////\/\/\\\\/\\\/\\\//\//\///\/\\///
\\/\\/\\\//\\\\/\/\//\/\/\/\\/\\/\//////\////\\/\//
\//\/\/\\\\//\\//////\///\\/\\\/\\//\\\//\\/\///\\/
////\/\///\//\/\/\/////\////\\/\/\//\\\\\\\/\\\//\\
\//\/\\\\/\\\\/\\/\//\//\//\//\\/\\/\\\\//\\/\\\//\
/\//\\\/\\\/\\\//\\/////\/\///\\\\/\\//\//\\\\//\/\
/\//\\/\/\/\/\\\//\\/\////\\///\\//\///////\//\\/\\
//\\\/////\////\//\//\////\\//\/\//\/\\\//\//\\\//\
////\\\////\\/\//\\/\\/\////\\\\\\\\\////\\/\//\\\\
\///\/\/\/\/\/\\\//\\\//\/\/////\\\//\\///\\\\\///\
\/\//\\///\/\//\\\//\\/\\/\\\/\/\/\\//\\\\//\\/\\//
////\/\\//////\/\//\\\/\///\\////\//\/\\//\///\\/\\
///\\//\///\//////\\\/\\/\/\/\\\\///\\\\/\\\\\\/\\\
\\//\\\\\//\\\/////\/\/\/\/\//\/\/\/\\/\/\\//\/\\\/
\\\\/\/\////\\\/\/\\/\/\/\//\\\\\//\//\\\///\\/\/\\
////\\\//\\/\\\/\\\//\\\\/\//\/\/\/\/\\/\/\\\\\\//\
\\\/\/////\//\\//\\\/\\\\/\//\//\\////\//\\\\\\\\\/
\/\//\\\\\\/\/\////\\\\/\\/////\///\//\\//\///\//\\
//\\\//\\/\/\///\\/\/////\\/////\\\\//\\//\\\/\////
//\//\/\\\//\\////\//\\/\\\//\//////\\/\\\\\\//\///
/\\/\/\//\\//\\/\\/\/\////\/\////\\/\\/\//\/////\/\
\/\/\/\\//////\\\/\\\\/\/\//\/\/\//\\/\//\//\///\\\
//\/\\/\/\\\\\\///\/\\\\\\/\//\/\\///\\//\\/\\\\\\/
///\/////\\/\\///\/\/\\\//\\///\/\/\///\//\\/\//\/\
\\\/\/////\/\///\\/\\\/\///\///\\/\/\//\\\/\//\///\
/\//////\\\/\\\\\\\\/\\\\\\\\\//\//\\\//////////\//
////////\\/\\\\///\\/\\\//////\////\\\\\\\\\/\///\\
/\/\\//\\\\/\/\\\///\/\/\\//\//\\\\/\//////\\///\//
\/\\\/\/\\\//\\\\//\///\\/\\///\\\//\\////////\/\/\
//\/\/\\\//\\/\\/\/\\/////\\/\\\/\/////\\/\///\//\/
Output
14
To the moon! Test
Input
/
99
\/\\\\/\\/\//\\//\\\/\/\/\\\\//\\///\/\/\\\\//\/\\//\\///\\//\/\///\\\/\\\/\///\/\\/\\/\\\\/\\/\///
\/\\/\///\\//\\\//\//\/\/\//\\////\\\\\//\///\\///\//\//\//\/\\/\\\\\\\\\/\\\\////\\\\/\\/\\\\\/\/\
///\\\///\\\////\/\/\\///\\\\\\\/\//\//\\/\\///\\\/\/\\\\//\\\\\\\\/\/\//\\\\\\//\//\\\\//\\/\\\/\\
\//\\\/\//\\\//\////\\\\//\/\///\/\\/\/\/\/\/\/\\/\//\\\/\/\\\\/////\\\\\/\//\\\//\\////\\\//\\\///
/\\\////\\//\/\/\\\///\/\/\//\\///\\\/////\\\//\/\/\\///\\\\\/\///\\\\/\//\\/\\\\/\\\////\//\\\///\
/\//\/\/\///\\\\\\\\\/\/\////\\/\////\/\/\\\\/\\/\/\\/////\/\///\\\/\\/\/\///\\\//\\\/\//\/\\\/\//\
\\\/\/\/\///\\\/\/\///\/\///\/\\\\\\/\/\/\\\\/\\//\//\\\\\\\//\\\//\\////\//\\/\/\//\//\\\//\\/\\\/
\\/\//\\/////\/\\\\\///\/\\/////\/\\\\\/\/\\\\\///\\\//\/\\\////\\\/\\/\\//\//\\//\//\\/\////\\\\//
\//\\\//\////\/\//\\////\/\\/\/\//\\/\\\//\/\/\\\\\/\\\//\\\\\/////\/\/\//\\/\//\/\//\\//\\\\/\/\//
\\\//\\\\\/\/\\//\//\/\/\///\\/\\\\/\//\\//\//\///\\/\/\/\//\\\\\//\\\\/\\\\\/\/\\\\//\\\\\\\\/\\\/
\/\///\/\\/\/\//\\\\\//\/\\\\\/\/\/\\\\\/\\/\\\/\/\\\/\//\/\\\\\///\///\///\//\/\//\\/\\/\/////\\\\
/\/\\\//\////\\/\\/\\\/\/\//\///\/\\\/\\\\//\/\\\\\/\/\\\\/\//\//\\/\\////\\/\\\//\\\\\\\\\\\\/\\//
\\/\\/\///\/\\///\/\\///\\//\\/\//\\/\//\//\///\/\\//////\//\///////\//\\\\/\//\/\/////\\/////\\//\
/\\/\\\\/\////\/\///\\\\\\\\\\\\/\//\\\/\\\\\\//\\/\/\\\\\/\/\\\/\/\\\\//\/\/\\/\\///\/\\\\//\\\\\\
\//\\\\/\//\\//\/\/////////\\/\/\\/\\\\/////\\\/\//\\/\/\\\////\/\//\\\/\\\\///\\\\\\//\/\\/\\//\//
\\\\/////////\\/\///\\/\/\\\\/////\//\//\\/\//\\\//\\\/\//\\\\//\\/\\\\\\\\\\\///\\///\/\//\/\\\\/\
//\\\////\/////\\\\/\\//\///\//\\////\\\\/\//\\\/\\/\\\\\\/\///\\/\/\/\\/\\/\/\//\/\\///\\//\\\\/\/
/\\/////\//////\///\/\/\\\//////\\\\/\\/\\/\\\\\/\//\\\/\\//\/\/\\/\\\/\\\\\///\\\////\\/\///\\\\\\
\//////\\\\//\\/\\//\\/\///////\\//\//\//\/\///\\//\/\/\//\\/\//\/\/\//\/\\/\\/\/\\\\\\\\\//\//\\\/
/\\\\\/\//\\/\\//\/\\///////\\\\/\/\\//\/\//\/\\/\/\\\/\////\///\\/\\/\\/\//\/\\///\/\\//\//\\\//\/
\\//\/\///\\//\//\\\\/\/\\\\/\\\/\/\\\///\\/\//\/\///\\/\//\/\\//\/\\/\//\////\\\\/\\///\//\/\\/\\/
///\/\\\\/\/\\\/\//\\/////\\\\\///\////////\\\/\//\\\/\\/\\\/\/\////\/\\\\\\\///\\/\/\\\//\\//\\\/\
/\\//\///\\\\//\\\\\/\/\\///\/\/\\\\///\\/\\//\\/\\\/\\/\\/\/\\//\/\\\\//\\/\\///\//\\/\/\\/\\/\\/\
/\\\//\//////\/\//\\///\\\//\//\\\//\\//\\/\//\///\/\//\/////\\\\/\\\\/\/////\/\\\\\\\//\//\//\\\/\
/\////\\\/\//\/\/\/\\\/\/\/////\\\////\\/\\\\///\/\\\///\\//\////\\/\\/\\//\\\/\/\\\\\\\//\//\/\\/\
//\/\\\\\\/\\//////\//\/\////\\\/\\\\//\\/\/\\////\\/\\///\\//\\\\/\\\\\\\/\\/\\/\\/////////////\\\
\//////\\\\\///\\\/\\//\//\\/\\///\\\//\/\/\/\\//\/\\//\\/\\\\//\\\/\/\\\//\/\///\/\\\\\//\\/\\\\\\
\/\/\/\///\/\\\\//\\\\////\\\/\\/\/\\\///\/\///\\/\\\\\\\\\\\/\///\\/\/\/\///////////\/\/\\\////\/\
////////\/\\////\\\/\\\/\/\/\\//\\//\////\\\\\/\\\/\\\/\\/\\//\//\\\\\\/\\\\\/\\/\\\/\\/\/\/\\\\\\\
/\/\///\//\\/\\/\\/\\/\\/\\\\\\\\\\\/\\////\\\/\/\/\/\///\/\//\//\\/\\///\//\\\\/\\\\\\/\\///\////\
/\//\\////\\/\/\/\/\\\\\///\/\///\\///\/\\\/////\/\///////////\///\\\/\\\//\////\/\\\///\\/\\/\/\/\
/\\\///\\/\\/\\\\//\\//\\/\\/\\/\//\//\\\//\\//\\/\/\\\//////\/\/\///\\/\///\/\\\/\\\/\\//\\//\\\\\
\\////\\//\/\//\\\/\\//\\\\\//\\/\\/\\\\\//\///\\/\/\\/\/\\\\//\\\\/\\/\///\//\/\\////\/\\\\/\\\\//
\/\\//\\\\\/\/\\//\/\/////////\//\/////\//\//\\\/\\\//\//\/\//////\\/\\\\/\\/\\\/\///\\////\\/\//\/
/\/\/\\\///\\//\/\\/////\//\/\/\/////\\/\/\\//\\///\//\/\//\/\/\\///\\/\///\//\/\\\\\\\\\///\///\\/
/\\/\//\\/\////\\\//\\//\//\/\///\\\///\\/\\\/\//\//\\/////\//\\\\/\\\\\\//\/\//\///\/////\/\\\//\\
\//\/\\//\/\/\/\////\\\//\\/\\//\\/\\///\/\///\\\\\\///\///\\/\//\\\\//\/\\\\\//\\//\\//\\////\\/\\
\//\\\/\\\//\/////\/\\/\/\\/\/\\/\/\\//\\/\/\/\//\\\\\////////\\/\\////\/\\\\/\/\/\\\//\////\/\\\/\
//\\/\\/\\\\\//\/\//\/\\//\\\\/\\\\/\//\\/\\\\/\\\\\\/\///\\\/////\//\/\////\///\////\/\/\/\\/\\\//
\\/\/\\\/\\/\/\\\\\\//\\\/\////\\\/\/\\\///\/\\/\////\/\\////\\\\//\\/\\//\//\\/\/\///\////\\\/\///
/\\/\/////\///\/\\/////\///\\///\//\//\\//\\\/\//\///\\\/\\\//\\\\\\/\//\\\\\/\\\/\\/\\\/\\///\\\\/
///\/\/\\/\\///\\/\//\\/\//\\\\///\\///\\\/\\/\\//\\/\/\\//\\\/\/\\/\\/\\/\/\///\////\////\/\/\\\/\
////\\//\//////\\//////\\////\/\///\\\//\//\/\/\/\\\\/\\\///\\/\////\/\\/\///\/\/\\/\\\\\\\\///\/\\
/\\//\//\\///\\\//////\/\/\///\/\/\\/\/\/\\\//\\//\\\/\/\\/\/\/\//\\\////\\//\//\\//\//\//\/\\\\\/\
/\//\/\\\\\\/\\\///\\/\//\\//\/\\\\\//\\\/\\\\\/\\/\//\\\//\//\\\\/\///\\\\\\\\\\\//\///\/\\\\/\\\\
\/////\/\//\\\\\////\\\\//\\/\\\\///\\///\\//\/\\\\\//\/\/\\\//\/\\\\//\//\\\///\//\/\//\/\/\////\\
\/\\/\/\///\\\//\/\\/\\\\/\\\/\/\/\\/\\//\/\/\/\/\/\\/\\///\\\\/\//////\\/\//\\////\\\\\\\\/////\\\
///\\\/\///\//\/\//\/\\//\\\////\\\////\\/\\/\//\\/\///\/\\\/\\\\\//\//\/\//\/\\\\\\//\//\\\\///\\/
/\\/\/\/\\/\\/\///\/\/\\\//\\/\///\///\\/\/\///\\\\////\//\/\//\\/\//\/\/\\/\//\///\/\///\\/\//\\//
\///\/\//\\/////\\\\/////\/\\//\\\\\/\\\\\/\//////\////\\/\\\\\\\\\///////////\\\////\\\\\\\\///\\/
\\/\/\\\/\/\\///\\\//////\//\\//\/\//\/\\/\\////\\\//\\\\\\/\///\/\\/\////\//\//\\/\/\/\\/\//\/\/\/
//////////\///////\\\\///\/\//\\///\\/\\\\\///\\/\\//////\\\/\\/\////////\//\//\/\///\\\\\\/\\///\\
/\//\//\/\/\/\/\\/\\//\\\\//\\//\/\\\/\\\\/\/\/\\\///\/\\/\\//\/\//\/\/\\\\/\/\\\/////\\\/\\/\///\/
\/////\\/\//\\\//\////\\///\\/\\\//\/\\\/\//\//////\\\\//\\\//\\/\/\\//\\/\/\/\\/\\\\/\/\\\/\\///\/
\/\///\////\/\\///////\/\//////\\/\/\\//\\/\\/\////\\\\\/////\\//\\\\/\\/\/////\\\/\/\/\\//\/\//\//
\\\//\//\//\\/\\\/\/\////\/\//\\/\\\\/\\/\//\//\//\\\\\/\/\/////////\\\///\/\\\\\\//\\/\\\\\/\\/\\\
///////\/\\//\/\//\//\\\///\\\\\/\\/////\\\//\\//\////\\//\\\/////\\//\/\///\\/\/\\/\/\/\/\//\////\
///\\//\\/\//\//\/\\\\\\\/\\//\\/\//\\\/\\\\\/\\\\\\\//\\\/\\////\\//\/\\/\\/\/\\//\//\/\//\\//\\//
\/\/\\/\\\/////\\\/\/\\//\///\/\\\///\\\/\/\\//\////\/\/\////\//\/\/\\////\/\\/\////\\/\\\//\\\/\\/
\/\\\\\////\////\\/\/\\\\//\/\\\//\/\\/\/\//\/\/\/\\/\//\/\/\///\\\/\/\\/\\/////\/\\/\\/\/\//\\//\/
///\//\/\//\/\\\///\/\\/\\///\//\/\\/\/\\//\\/\/\/\\\\/\\///\\\/\\/\/\\/\\\\/\\\\\/\/\/\\\///\\\\\/
\\/\\///////\\//\///\/\//\\\/\\//\\\\\/\//////\\\\\/\//\///\/\\/\/\\///\/\\\\/\///\\/\\/\\////\///\
//\\\\////\\///\\\///\/\/\\\/\\//\\//\\///\\\\\///\/\/\//\\//\//\\///\\\/\///\\\/\/\//\\/\/\\\//\//
\/\\\/\/\/\/\/\\\//\\///\\\\//\///\\///\\\/\\///\\\/\///\\\/\/\//\\//\/\\\/\//\/\//\\//////\//\\\\\
\\//\\///\/\\\/\\//\\//\\\//\/\\\\\//\/\/\\\/\/\//\\\\///\\\\////\\////\/\/\\\\\/\//\\/\/\/\\/\\//\
//\//\\///\///\/\/////\///\\\/\\/\\//\\\/\\\\/\\//\\/\\\\////\/\\///\\///\\//\/\\/\//\\/\\/\///\\/\
///\\/\//\///\///\////\/\//\\\//\/\\/\//\/\//\/////\\//\/\\\////////\/\\\///\///\/\///\/\\/\\//\\//
/\/////\\/\\/\/\//\/\/\/\/\\//\/\\/\/\/\\/\\/\//\\\///\\/\///\///\/\/\\//\/\\/\\/\\//\\\//\\\\/\///
\\//\/\//\\\//\\\\/\/\/\/\\//\/\//\\///\\\//\\//\//\\\\\\\/\/\/////\\\\\\\/\/\/\/\\/\/\//\//\\\/\\/
\\\\//\\\\/\/\//\\\//////\//\\\/\\\\/\//\///\\\\//////\///\/\/\//\\\/\\/\\/////\/\/\\/\/\///\\///\/
//\//\///\\/\\\///\\/\/\\/\\/\/////\///\/////\//\\\\\\//\/\/\\/\\\//\/\\\//\///\/\\/\/\/\//\\//\/\/
\\\\/\\/////\/\//////\///\\/\///\/\//\\/\/\/\//\\/\\///\//\///\\\\////\\/\/\//\/////\\/\/\\\////\\\
/////\/\/////\\/\///////\\\//\\\///\\\\\//\//\/\/////\/\///\/\/\\\///\\\\//\/\//\//\/\\//////\/\\//
\\/\\/\\/\\/\/////\\//\//\//\/\/\///\\\\\/\\\\/\\/\///\/\//\\\/\/\//\\\\//\\//\\\\//\/\/\\//\\\\///
/\/////\/////\/\\/\\/\\/\\///\///\\\\\//\//\\\\/\\\\\///\///\/\\//\/\\////\\//\/\/\///\\//\///\///\
/\\///\/\\\\\//\/\//\\\\\\//\/\///\\\//\\/\\/\\\\\\\/\\//\/\/\//\/\\/\\//\\\/\/\\///\\\\//\//\\/\\\
\/\\/\/\\\/\\/\//\\\/\/\///\/\/\\//\\//\\\\/\\/\\\\////\////\/\///\\\\\/\///\\////\\\\/\\\\/\/\\\/\
\\/////\\\\///\//\/\/\//\\\\///\////\/\\/\/\\\/\\\/\\/\//\//\/\\//\\\/\/\\//\\\/\\//\\//\/\\\/\\\/\
//\\\\///\//\\\////\\\\\\///\///\//\/\///\/\\/\\\///\\///\////\/\\\//\\\\/\//\\\//\\///\\/\\\/\/\\/
\/\\\\\\\\\\\\/\/\//\\/\\/\\\\\\/\/\\/\\/\//\\\\\\/\/\/\\/\\/\/\\//////\//\//\\//\//\/\\\//\///\//\
/\\\////\//\\///\//\//\\/\\\//\//////\////\//\//\\\\\\////\\\//\\/\/////\\//\\//\\\/\\\///\//\//\//
\\\//\///\/\/\\\////\\\\\/\//////\/\/\/\//\//\\/\///////\\\////\//\/\\\/\\\//\\\\//\\//\//\\\\\/\\\
\\\\///\//\////////\/\/\/\\/\\\/\\/\/////\/\/\\////\\\/\\\//\\\\\////////\\\///\\///\///\//\\\\///\
\///\\\/\//\/\/\///\/\\\/\/\\\/\\/\\/\/\/\\\\//\\//\/////////////\////////\//\/////\/\\//\\\\//\/\\
///\/////\//////\/\/\\///\\\/\//\/\\/\///\//\//\\/\\\\////\\\/\/\\/\\\\\\\\////\\/\//\\\/\/\\\\\\/\
\\\/\////\///////\///\////\\\//\/\////\///\/\//\//\//\/\//\/\/\////\\\//\\//\/\//\\\\///\/\\/\\/\/\
/\\///\\/\//////\\\\\\\//\\/\\\\/\//\//\\\/\\/\\\/\\\////\\/\/\/\///\/\/\///\/\///\\\/\\/\/\\////\/
/\/\\\\\\\/\\//\/\/\/\/\\//\\//\\///\/\//\/\/\//\//\\\///\///\\\/\////\//\/\/\\\\\/\/\/\/\\//////\/
//\\\\////\/\\\/\/\///////\/\////\/\\///\///////\\\///\/\/\\///\\/\\\\//\\\//\\\/\\///\\/\///\//\/\
\\///\\\/\/\\///\\\\\/\/\///\\\/\\//\\//\/\\\\/\//\\//\////\//\/\\/\\\///\//\\\///\\\///\\/\/\/\/\/
///\\\/\/\/\/\////\/\///\\\\\///\/\\/////\\\///\/\///\//\/\/\/\\\/\\/\\/\\/\\\\\\/\/\\\/\/\\//\\//\
\//\\\///\\//\//\/\///\\\///\\\/\\\/\/\\\/\\///\//\\///\\\\\\\/\\/\/\\/\\///\////\\/\/\\\//\\\//\//
/\////\\/\\/\\\\/\\\//\/////\\/\\\\\\///\/\\\\\//\//\///\\\\//\/\/\\//\\///\/\\///\//\/\\/////\////
//\\\/\/\\///\\\\////\///\//\\\//\\\\\/\\\\//\\\\\\\\////\\\////\\\\/\\/\/\//\//\\\\//\/\/\\\\\///\
//\\\//\/\/\/\///\\\\\\//\\\\\//\\\\///\\//\///\\//\\///\////\\\\\\\\/\\\/////\/\///\\\\\\\\/\\\\/\
/\/\/\/\\\//\/\\///\//\/////\\\\\/\//\/\\\\\/\\\\/\/\\\///\/\\/\\\/\\\\/\\////\\\//\\/\\/\/\\\//\\\
//\\/\\\\\\\/\\///\\/\/\/\\////\\/\///\\/\/\\\//\\\//////\\//\/\\//\\\\/\///\\///\\\/\/\/\\///\/\//
\\\\\/\/\\\\\\\/\//\\\///\////\\//\/////////\\/\///\/\///\//\\////\/\\\\///////\//\///\\/\\\//\///\
/\\\\///////\\\/\/\/\/\\//\//\\\/////\/\\\///\\\\//\/\\/\/\//\/\//\////\/\\\//\/\//\//\//\/\\//\\\/
Output
13
Validator 4 Validator
Input
/
99
////\\/\\/\\\\////\\/\\/\\\\/\\\\\\\/\/\///\\/\\\\\/\///\//\//\/\//\//\/\\\/\\//\/\\/\\\/\\\\///\//
/\\/\\\\\\/\\\/\///\\\/\/////\//\////\\/\\\\/\/\/\\\//////\/\//\/\////\\\\//\/\/\/\/\//\/\\\\\\//\/
\\/\\\\\///\\\\\\/\/\//\//////\/\\\/\///\\/\/\/\\/\\/\\\\/\\\\////////\\/\////\/\////\\/\\\\\\/\///
\////\/\\\//\\/\/\\\/\\/\/\//\/\\//\//\\\/\/\///\\/\\/\\\\\\/\\\/\/\/\\//\\\\//\\//\\/\//////\/////
\////\/////\\//\//\\\////\\//////\////\///\\\\\\/\\/\\\\\\\/\////\\\\///\\\\/\\/\\\///\/\\\\/\/\\\\
\/\\/\/\\/////\\/\\//\\/\/\\/\\\\///\//\///\\/\\\///\\/\//\\//\/\\\\/\/\///\\\/\/\//\/\//\/\\/\\///
\/\\\///\/\//\\///\//\/\\\///\\\\/////\///\\//////\\\\/\\\\\\\\\//\//\/\\\\\/\\//\\///\\/\/\\/\\\\\
/\\////\\/\\//////\\\\////\\\/\///\\///\//\/\\\//\/\////\/\/\///\\//\///\//\/\/\\\//\/\\/\/\\///\\\
\////\\/////\\//\/\\\\\\/\/\\/\\////\/\\\\\/\\/\/\//\\\\///\/\/\\\\\//\//\\////\/\///\/\/\\\\/\\/\\
\\/\/\\\//\///\\//\/\\/\/////\/\\/\/\/\/\/////\///\///\\\\//////\///\\\/\\\/\/\\\/\\\//\///\\/\\\\\
/\\\///\//\/\////\/\/\//\//\\/\/\\///\\\/\//\\/\//\\/\\\\\\\\\//\/\\\////\\\\\\/////\\\/\/\/\/\\\/\
\\\\//\/\\\\/\///\/\/\/\\///////\/\\///\/\/\\//\\\//\\\\\\\///\\\/\\/\\////\/\\/\\\//\\//\\\/\//\//
/\\/\/\\\\//\///\\//\//\\\\\/\/\/\///\\\/\\\\///\/\\\///\\/\/\\\\//\///\////\/\\////\/\\\\\\\/\\\\/
//\/\\//\/\/\\/\\\/\\\/\\\//\//\\/\////\\/\\\\/\//\\\\/\\/\\\\\\\\///\////\/\\\//\/\/\\/\/\/\///\//
\\//////\/\\\\/\/\//\\\/\\\/\\/\/\\/\/\/\//\\\\/\\\//\//\\\\//\\\\\\\///\////\////\/\\/\/\/\///\/\\
\////////\\/////\\\\\\\\/\/\///\/\\///\\\///////\//\\//\///\\\/\/////\\/\\\/\/\/\\\\\///\/\/////\\/
\\\\\/\\/\//\\/\////\\\/\\/\\/\\///\\\/\\///\//\\/\\/\\/\\/\\///\\/\//\\/\\/\/\/\/\\/\\//\\\////\\/
/\/\\//\//\\\//\\\\/\///\\/\//\/\\\\/\\/\\\\///\\\/\\\/\\///\\\\////\//\/\/\\\/\/\\//\//\/\\\\//\/\
/////\\\/\///\\\\\/\\///\\/\\/\//\\\\/\//\/\\//\/\/\/\\\\/\//\/\//\/\///\//\/\\\//////\/\\\/\/\\///
\\/\/\/\/\\/\//\\\/\/\\\\\\/\\\///\\\/\////\/\/\/\/\//\/\\/\\/\/\//\\/\//\/\\\//\\\//\\\\\/\\///\//
//\/\//////\\\\\\\////\/\/\//\////\\/\\\//\/\//\\///////\\\////////\//\\\/\//\/\\\\/\/\\/\\\/\\\/\/
/\//\\\\/\\\/\/\\\\\///\//\\\//\//\//\\/////\\///\\\\//\//\\/\\\//\/\\\/\\\\\/\\/\\/\\\///\\\\//\\\
/\\//\//\/////\//\\//\/\/\\/\\\////\\\\//\\\/\///////\\\\\\////\////\\\\\\//\\\\/\//\\//\//\/\////\
//\\/\/\//\/\\/\/\\/\/\\\/\/\/\/\///\/\/\\\\\/\\\/////\/\\\\///\\////\/\\\/\\/\//\//\\///\/\/\//\\/
\/\\/\////\\\\//\/\/\////\/\\/\/\/\\//\\\\/\\//\////\//\//\/\\/\\\\//\//\/\/\\\/\/\/\//\////\\\\\/\
//\\///\////\\//\/\/\//\/\\\/////\\//\\\/\//\\/\/\/\\//\/////\/////\/\//\\/\\///\//\\/\/\//\/\\/\\/
////\//\/\\/\\/\/\\/////\\\\/\\\//\\\//\//\//\//\//\/\/\\\\\\\\\\/\\/\/\\\\\\//\/\\\/\\/\\\//\/\\//
//\\///\\\\//////\/\\//\\///\\\\\\\\/\\\\//\\\/\////\/\/\/\/\\/\\////\//\\/\/\/\\//////\//\/\//\///
\\/\\/\/\//\//\////\/\/////\\////\///\\\\\//\/\\\/\\/\/\///\\/\\///\\////\\\\/\\//\\/\\\\//\////\\/
\\\\\\///\/\\\/\\\\\\//\/\/\\\/\\///\\/\\\/\\\\\\/\///\\\//\//\\/\\\//\/\//\////\/\\\\//\\//\/\\\//
\\\\/\//\////\\\/\\////\/\\\/\\/////\\/\/\\\//\//\//\\////\\/\/\\\\\\/\\//\\\/\//\/\/\\///\\/\/\\//
/\\/\\\/\\\/\/\/\\//\\/\//\\/\/\\\/\/\///\/\\/\\/\//\\\/////\\///\////\/////\\/\//\\//\//\///\//\/\
\\\\\//\//\\\\//\/\\\///\/\///\/\\\\//\\\\/\\//\/\\\//////\/\/\\//\\/\////\\\///\///////\\///\/\\//
/\\//\\\///\///\\//\/\//\\/\\/\/\////\\\/\\//\/\\////\\/\\//\/\\/\////\/\\\//\\//\\/\\///\\\\\\/\\/
\///\\///\\////\\/\\\//\\//\/\\\/\//\/\\/\///\/\\//\/\\\///\//\/\/\////\\/\\//\/\//\//\///\/\\//\\\
\/\\\/\/\\//\\\/\//\/////\\//\//\\\\\/\//\\//\//\\\/\\/\///\/\\\//\\\//\//\/\/\\///\\/\\\\\/\///\\/
\\//\\\\/\//\\\\/\\/\\\/\/\//\\///\///\\//\///\////\//\/\//\/\\\/\/\/\//////\\//\/\\\\/\\\/\/\\\///
////\\\\\/\/\\/////\/\\\/\\/\//////\//\\/\\//\///\//\///\\\\\\/\\\//\//////\//\/\/\///\/\//\\\/\\\\
\\//\/\/\\//\//\\\\\\\\\\\//\\\\\\///\\/\\\\//\////\\///\\///////\/\//\\//\/\\//\/\\\\\/\\\/\////\/
\///\\\\////\\/\/\\/\\\\\///\/\\\/\/\\\\\/\\///\\/\/\//\\//\////\\/////\/\\//\\///\\\\\\\//\\//\///
\\//\//////\\/\\/\\\\/\/////\//\/\\/\////////\////\\\//\/\//////\\\\///\\/\\////\/\\/\\/\/\//\\\\\/
/\/\///\\\/\/\/\\\/\/\/\\///\/\//\\//\/\///\\///////\\///\//\//\/\//\\/\\\\//\\\///\//\\/\/\//\/\\/
\\///\///\\\\/\\\\\/\\//\/////\////\/\/\/\/\//\\/\\\//\//\///\\\/\/\\\\/////\//\\//\////\\\\\\\/\/\
\\\///\//\/\\//\\\/\/\//\\//\\/\/\////\/\\/\//\\/////\//\\\\\/////\\///\/\/\\\//\//\///\/\\\/\//\\/
//\/\/\\/\////\\/\////\/\////\////\/\/\//\\//\//\\//\/////\/\//\\\\\\/\\//////\/\/\//\/\///\\//\///
/\/////\\//\//\//\\/\/\/\\///\\\/\/\\//\\\\\\\\///\\////\/\//\//\\//\///\////\\\\\\\\\////\///\/\/\
//\/\\/\/\////\\\\\\/////\/\\/\\\/\\\\\/\\\////\//\\/\////\//\\//\/\//\///\/\\/\//\\\\////\/////\\\
\/\\/\\\\\\/\\\//////\\/\\////\/\\/////\//\//\\/\\/\/\/\/\\///////\//\/\\\\/\//\\\\\/\//\\\/\/\////
\\\/\\//\///\\\\\////\/\/\\\/\\\\////\\/\\\/\\/\\/\\\\/\\/\///\/\\\\\////\/\\////\/\\\\//\//\/\\///
\///\\//\\//\////\\/\/\/\////\\/\\/\\\\\\//////////\////\\\\\\//\\\/\/\\//\//\/\\/\////\\\////\\\\\
\/\\/\\/\///\\\////////\\/\/\////////\\\\\//\\\/\\\\/\\/\/\/\/\\\\/\\/\\/\//\\\\/\\\\/\///\/\//\///
\//\/\\\//////\\\/\\/\////\///\\\\/\\/\/\///\\\//\\\//\/////\\\\\\/\\\\\/\///\/////\\//////\//\\\\/
/\\\\\\\\\////\////\/\//\\\\\\\//\/\///\/\\/\/\//\/////\\/\\/\\///\//\///\\/\//\/\\/\\/\//\/\\\\/\\
\/\/\/\\/\//\\\/\\//\\\///\///\///\\\\/\\\\\//\\/\////\//\\///\/\/\///\\/\//\//\\\/\/\//\\\\\/\\//\
\\////\\/\\\/////\\\/\\/\\\////\\\/\/\\\\///\\//\/\\/\//\\\/\/\\/\//\///\/////\\//\\\/\/\//\//\///\
\\/\\//\/\//\\\/\\////\/\\\\\/\\/\\\\//\/\/\//\/\\////\\\//\\\\\/\/\/\///\\\/\//\\\\\\\/\//\/\/\/\/
/\/\/\\///\\/\\\\/\\//\\\/\/////\/\\/\////\/\/\\///\\\\\\\/////\//\\/\\\\//\/////////\////////\/\//
/\\\\\/\\//\\\/\/\\\\\\//\/\/\///////\\////\////\/\//\/\\\\////////\\\\///\\\//\/\//\\\\\\\\//\/\//
\//\\\\\\\\/\///\/\\\\//////\//\//\/\\/\/\///\//\/\//\//\/\\\///\////\\/\//\\\\////\\///\//\\\\/\/\
///\\//\/\\\//\////\\\/\/\//\\\///\/\\\///\\/\////\///\/\\/\\/\\/\/\\/\\///\\\/\////\///\////\\\\\\
\\\\\/\\/\/\////\/\/\\\//\\\\/\\/\\\\//\\////\\\\/\////\\/\/\\\\/\\/\/\//\/\\////\/\\/\/\\/////\///
\\/////\\\\\\\//\//\/\//\\\//\\\/\\\\\//\\\\\\\\/\\\\\////\\\/\/\\\\/\\\/\\//\\\/\\///\\\\///\/\\\\
\///\\\//\\////\\//\\\/\\/\\\\\\\\\////\\\/\/\\///\\/\\\\\/\\\/\\\/\/\\\\\\/\\\\\\\\\/\\/\\///////\
/\/\/\\\\\/\\\/\\\\/\///\/\\\//\//\\\/\//\//\\\\\\/\\\\////\///////\/\\//\//\\\\\\\/\\/\\///\\/\//\
\/\///\\\\//\/\\\\/\/\/\/\//\\\///\//////////\/\\/\//\//\////\/\\///\//\//\\\/////\\\/\\/\\\\/\\\//
//\/////\\\\/\\\\/\/\\\/////\\\\\/\\\\/\\//\\\\//\\\\/\/\/\/\\\///\//\/\\\\\//\/\\/\\\\/\/\/////\/\
\\\///\\///\\\\///\\////\\\\\\///\\\/\///\/\\/\\\\/\\/\\\/\//\\//\/\\/\\\/\\/\///\/\//\\/\\\\/\//\\
\\//\\\\//\\/\/////////\//\\\/\//\//\\\/\//\//\//\\/////\/////\/\//\//\/\\\\//\\/\/////\/\\/\/\\\\/
/\\\/\//\\/\/\\\////////\\////////\/\/\//\\/\//\///\\\/\\\/\\/\///\\\\///////\\\\/\\\/\\////\/\\\\\
\\//\///\\\/\///\//\\/\///\\/\/////\\/\/\/\/\\\\\\////\\\/\\//\\\/\\///\\///\\\/\/\////\/\\/\//\\/\
\//\/\//\/\///\/////\\//\/\/\///\\\///\\\/\\\\////\/\\\\\/\//\//\\////\//\/\\/\///\\////\////\\\/\\
\\\\\\//\/\\\\\\\//\\\/\/\\\\\\/\\\\////\\//\/\\/\\/\/\/////\/\\////\///\\\\/\/\\/\//////\\/\\/\/\/
///\//\/\\//\\\/////\\\/\//\/\\\\\\\/\\//\////////\/\///\\\//\/\\/\//\//\/\/\/\\/\\///////\\/\\\\\\
\/\\/\\/\/\/\\/\\/\/\///\/\\\\//\\//\\\//\\///\/\\\\\//\\///\\////////\//\//\\\\\\\\\\//\\\//\/\\//
\\\\\\/\///\\\\//\\\\\/\///\\//\\/\\\\\\///\\/\\/\\\////\\\\/\\/\\///\\\/////\///\\\/\/////////\/\/
/\//\\\/\\\//\\/\/\/\\\/\\/\\\\/\/\//\///\\/\/////\\\/\\//\\/\////\\///\\\/\\////\/\\\//\/\//\\/\\/
\\\/\/\\/\\///\//\\\////\\\/\/\/\\\////\/\////\///\\/\//\/\\/\/\\////\/\\\//\\\\\\\////\\\\//\\////
\\/\/\////\/\\\/\\//\/\/\///\\\\/\/\/\\\\\\\\\/\/\\\/////\/\\/\//////\/\\\\/\\//\\\/\\//\\\\\\\//\\
///////\//\\\/\/\\\//\//\//\\/\//\\\\\/\\///\\////\/\\\////\////\///\/\\//\\/\//\///\\//\//\\/\\\\/
//\/\/\////\/\\\\\\\/\/\\/\//\///\\/\/\/\///\///\\/\/\\///\\/\///\\\\\/\/\//\\\\//\/\/\\/\\\\\\/\\/
/\\\/\\\\\\\\\\\/\\///\/\/\///////\/\\\\\/\\/\\\//\/\//\\\/\/\\\/\//\\////\//\\/\\/\\///\\//\/\///\
////\\//\/\\\//////\////\\/\/\\/\//\\\\/\\\///\\/////\/\////\\\\//\/\//\/\/\/\\/\/\\//\\///\\/\/\\/
\\\/\/\\\\\\\\/\\/\\///\\\\\\/////\//\///\//\\/\\\/\\\\\\//\///////\\\\/\\\///\\\/\\\\/\/\\\\\\\/\/
//\\\\\/\///\///\\/\\/\\\/\/\///\\/\\\/\\/\/\///\/\\\\//\\////\\/\\\//\//\/\//\\\\/\\///\/////\/\\\
/\///\\//\/\///\/\/\/\\\//\/\////\\\\\/\/\//\/\\\/\\/\/\\/\//\////\////\\\\\/\/\\/\\\/\/\/\/\\\\/\/
\\////\/\///\/\\/\\\/\\\/\/\\\/////\/\/\/\//\/\///\//\\/\//\\/\///\/\//\/\\/\/\/\/\/\\//\\/\\/\\\/\
\\\\/\\\/\/\\////\\\//\\\\/\/\//\\///////\\\////\//\\\\\//\\\\/\/\/\/\/\//\//\\\\//\/\\\/\\\/\\/\\\
/\/\//////\\\\/\//\\/\/\\\//\\\////\\/\//\\\\\/\\/\\///\//\/\\\/\/\//\///\//\\\////\\/\//\\/\\/\///
\////\\////////\////\//\\/\//\///\/\///\\\\///\\\//////\\\\/\\/\\//\/\/\\/\\\//\\\//\\\//\/\/\/\/\\
\\////\/\/\/\\/\////////\/\//\\\\/\//\\/\//\\\//\\/\//\\\\\//\/\\/\\/\///\/\\/\\//\\\\\\/\///\\/\\\
\/////\\/\//\///\//\//\//\\\/\/\\////\\//\\/\///\/\/\\///\\\\\//\/\\\/\\/\/\//////\\/\\\//\\\/////\
\\\\\/\/\//\\\/\/\/\/\\\\\///\/\///\\\//\//\\\\//\\\\\/\\/\\\\\\\//\/\\\/\///\\\\\//\/\\///\///////
\\\/\//\///\/\//\\/\/\\/\\\\//\//\\\\//\\/\/\\//\/\\\/\\////\\///\////\///\\//////\\\\\//\//\//\//\
\/\\/\//\\\\\/\\/\////\\\/\\\\\\\/\\//\\/\\\\/\///\\///////\\\\\\\/\/\\\\\//\\////\//////\/\/\///\\
//\\\//\//\/\///\/\\//\\///\\\/////////\\\/\\\/\/\///\/\//\\\\\\\/\/\////\\\\/\/\///\/\/\\///\\\//\
\/\//\\\//\\\\/\/\///////\/\\///\\/\\\\/////\\//\///\/\\/\\\///\\///\///\//\///\\\//\\\\\///\\\\\//
/\\/\////\/\/\\\//\\\\/\\\\\/\/\//\\\//\\///////\\\/\\\/\/\\//\\\///\\//\\\\\/\\/\\\//\///\//////\\
\\\\///\\/\/\\\\/\/\\//\/\/\\///\\////\//\\/\///\\/\/\\\//\/////\\/\//\//////\\//\\\//\\\/\///\\\//
///\////\\\///\/\\/\//////////\\\\\\//\///\/\/\\\/\///\//\/\\\/\//\/\\\\\/\\\/\///\\\\/\\/\\/\//\\\
Output
10
Solution language
Solution
Stub generator input