QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#500560#3824. Rock, paper, scissorsPetroTarnavskyi#AC ✓10ms4324kbC++20625b2024-08-01 14:48:112024-08-01 14:48:12

Judging History

你现在查看的是最新测评结果

  • [2024-08-01 14:48:12]
  • 评测
  • 测评结果:AC
  • 用时:10ms
  • 内存:4324kb
  • [2024-08-01 14:48:11]
  • 提交

answer

#include <bits/stdc++.h>

using namespace std;

#define FOR(i, a, b) for(int i = (a); i < (b); i++)
#define RFOR(i, a, b) for(int i = (a) - 1; i >= (b); i--)
#define SZ(a) int(a.size())
#define ALL(a) a.begin(), a.end()
#define PB push_back
#define MP make_pair
#define F first
#define S second

typedef long long LL;
typedef vector<int> VI;
typedef pair<int, int> PII;
typedef double db;

int main()
{
	ios::sync_with_stdio(0);
	cin.tie(0);
	map<char, int> cnt;
	string s;
	cin >> s;
	for (char c : s)
		cnt[c]++;
	cout << (cnt['K'] == cnt['P'] && cnt['K'] == cnt['N']) << "\n";
	return 0;
}


Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3772kb

input:

KPNPKP

output:

0

result:

ok 1 number(s): "0"

Test #2:

score: 0
Accepted
time: 0ms
memory: 3524kb

input:

KKPPNN

output:

1

result:

ok 1 number(s): "1"

Test #3:

score: 0
Accepted
time: 10ms
memory: 4128kb

input:

KPKNPNKKPPKNNNNNPPPKKNKNPNNNPNKNKPKNNNKNNNNNKKNNKNPKKKPPPNKKNPPNKKNPKPNKNNKPKKNNNPNKNNNKKPNKNPPKNPKKKNPKPNPKPPNNPPNPNNKPNPNNNPKPNNNKPKNNNKNNPKPPPKPNKNPPNKPKKKPPPPNNPPPKKPPNPPKPNNNNPPPNPPKPKPKKKPNPPPKPKPKPNPKPNKNPPPKNKNKKPKPNPNKKPPPNPPNPNNPPNNNKKPPPPNPPPNPPNPKNNNNPPNKKPKPKKPNPPKNPKKNPPNPKPKNKPNPPPKPN...

output:

1

result:

ok 1 number(s): "1"

Test #4:

score: 0
Accepted
time: 10ms
memory: 4168kb

input:

PPNPKPKPPNKKNKPKNPKKPNKKNKKPKKNPPPKKPPPPKKKNKNNKPKKPPPPPKNNKPPKNNPPKKKKPNPNNPKNNKNPKNPNNPPNPKKPPPPNNPNNKNPNKPNPKNNKPKNPPNNPPPPKPPPNKPKPPKPPNNKPKKNNPKNKKKPPNPNKNPKPKKKPNKPNPNNPNKNPKNKNKKKKKKNPPPKPNPKKNPPKKPKNNPKNKNKPNPNNPNNNKPKKPNKPPNKPKKNNNNPKKKPPKKPPPPNPNKKNPPPKKNNNNPNPNNPKPPNPPPPKPPNKNKNNPPNNNPPNN...

output:

1

result:

ok 1 number(s): "1"

Test #5:

score: 0
Accepted
time: 7ms
memory: 4276kb

input:

NNNKKKNNPNNNNNKNPNKPNPKNNKPKNPNNKNNPKKNNKKPKNNPKPPKNPNKKPPNKNPNPKKNKNNKNPNPPPNPPNNPKKKPPNPPPKNKNKPPPPNPKNNNKPNKPPNKKPNNKKNKKPNPPNKKPKKKKNKKPNKPPKPKNKKPPKPKNNPNPNKNNNKKKPPKNPNNNPNNPKNKKNNNKPPPKPPKPNNKNNKPPNPKPNPKNNNNKKNPPKNPNKNKNNPNPNKNPNKKPKPNPNKPNKKKKNNNNNPPNNPPKNNPPKPNKNNKPNPNNPKPNKKNNPPNKPNPPKNKN...

output:

1

result:

ok 1 number(s): "1"

Test #6:

score: 0
Accepted
time: 10ms
memory: 4272kb

input:

PNPNNNKPPPKKNKPKNNNKKPPKNPNPKPPPKKPPKPKPKPNKPPNKPNKKPKKKPKNKPKPPPPKPPNNKNNKKKKPNKKKPNNKKNPKKKPPNKNNPKKPPNPNNKPNNKPPKKNNKNPNPPPKPKNPNNPNPPPNPKPNPKNKNNNNPKPPNNPKNPPPPPPKNPPNPKKNNPNPPPPNPPPPNNNPPKPPPPKKNNKPPKKPNKPKPPNNPNPNPPPNNNPPKKNNKNKKNKKNPPPNKNKPPKNNKPPKKNNKNKPPKNNNKKKPPKKKPNNKKKPPPNKNPPNKNKPPPKKPP...

output:

0

result:

ok 1 number(s): "0"

Test #7:

score: 0
Accepted
time: 10ms
memory: 4044kb

input:

KNKNPPKPPNNPPPNKPPPKPNPNKNKNPPPKNNNNPKNPPPKKPPNNKKPKNPNPKKKKPPPNNPPKPPPKNKPNKNKKKPNNKKKPPNPPKKPNKPKNPKNNKPNPPKKNKNKKKPKNNNPNNPPPPKPNKPPNKPNPKPKKNPNKKNPPKPKKPPPPKPKKPNPKNKKPKKKNKKPNNPPNKPKNNPKKKNKPPNPNKPPPNNNNNPNNPKKNPPPPPNKKKNNPPKPPNNKPPKNNNNPNKKPKPPPKNKKNPNPPPPNPNNNKPPPNKNPNPKPNNNKNNKPPPPKNNKNPNPKK...

output:

1

result:

ok 1 number(s): "1"

Test #8:

score: 0
Accepted
time: 10ms
memory: 4120kb

input:

PKPNNKKNPPNPPPPKPNPNPNNNPPPKNPNPPPPPKPKKNKKPNKPPNPNPKKPKPNKNNKKKNPPNPKKKKPPPKPPPKNPKNNKPNNNPNKKPKNKPKKNNKKKPNKPNNPNPNPNPNKNNNKPKNNKPPNKNKPNKKKKKKKNKKNPPNNPNNPNPPNPNPKNPNNPKNPNKNPKNPNNNPNKKKNKPKPPNPNKNKNPNNNPKPPKKPKPKNKKNNNKPKKNNKKPPPKNNKKNNNNPNPKKKKNKNKNPNPKNKPKNNNNNPPPPKPNPNPNNPPPNPNPKNPNNNKPNPPPKK...

output:

0

result:

ok 1 number(s): "0"

Test #9:

score: 0
Accepted
time: 10ms
memory: 4044kb

input:

KPKPNNPNKNKPPNKNPNNKPKNPNPPNKKPNPPNNKNPPNPPKNKKNKPNNKKNNNKPKPPPNKKNNPKNKNKNPPKNKNPKPPPNPNPNNKNNNPNNNKNNKKPPKKNKNPPPKKKPKKPPNKNNNPPNNNKKPKNNPKKNPNPKNPKPNNKKPPNKNKPPKPKKNPPKKKPKPKKPPNKKKKNPKKNKNPKPKNNKNKNKNKPKKNPNKNNKPPNKNKNNNPNKNKPNNKKKKPNKNPKNPNKNNNKKPKKKKKPNKPNNNPPPKNNPNNKNPPKKNPPPNNNPNNNPPNPKNNPPP...

output:

1

result:

ok 1 number(s): "1"

Test #10:

score: 0
Accepted
time: 6ms
memory: 4188kb

input:

KKNKPNPKKNPKKPPNPNPKPKKKNPPNPKPNNNNPPKPPNNKNKNKNNKNKPNNNKKKKKKKPPNNNNKPKPNKKNPKKNNPKKNNNPKPPPPKPKNKNKNNNPNNPNNNKNKNNKNKKKKPPKKNNNKPKKKKNPNPPNPPKNPKPKKNPPPKNKNKPNPKPNNKNNNNNNKPNKKKNNNKKKKPNPPPNNPNPKPKKNPKNPPPPNPKPPPKNKNPKNKPKNPNPKNNNKKKKKKPNKNKKPPNNPPPKKNPNPKPPPPKPNNKNPPKKNNPNNNNKPPNNNNNPPPKKPKPKNNKK...

output:

1

result:

ok 1 number(s): "1"

Test #11:

score: 0
Accepted
time: 7ms
memory: 4120kb

input:

PNPNKKPNNPKKPKNPPKKNPPKKPPKNKKPPNPNNKPKNKKNKNKKKKKKKKPKNNKKNKNNPKPKPNKNKKPKPPNKPPNNPNKPNNPPKNPKNKPPNPKPNPKKKPNKPNPPPNKPPNPNPNKKNKNKNPPNKPKPKKNPNPPNKKKPKNPPNKKKPPPPKNKPPKNPPKNKNPPKNPKPPNPKKPPKKNPKKPPNPPPKPPKKPPNPKPNNKKNNNPKPKNPKKKNKPKNNKNKKPNNPPKNNKNNPKNNPKKNKNKNKPPKNNNKPNKPPNKPPKKKPNPKNKPNKKPKKKNNPK...

output:

1

result:

ok 1 number(s): "1"

Test #12:

score: 0
Accepted
time: 6ms
memory: 4136kb

input:

NKPKKKNPKPKPNKPKKKPKKKPNPPPNNNKKPNPKPPPNKKNPKPNKPPKKPNPNNNPNPPKKKPKNKKPNPPPKKKPNPNPKKKKNPPNPNNPKPNKKPKPPPPKNPPNPPNPKKNNKNPPKNNNPNKKKPKPPKKPKPPPNPKNKPPNKPKPKKNPNKPKKPPPPPPNNNKKNKPKPPNKNPNPPKPNNPPKPPKNKNKNPKNKPPNKNNNNNNNKPKPNKPPNNKKPNKPNKNPKKKKPNPPPKPKPPPPNKNPNPKNPKNNNPNPNPPPNKNKPKKNPKNPKNKKKNPNNNNNPP...

output:

0

result:

ok 1 number(s): "0"

Test #13:

score: 0
Accepted
time: 9ms
memory: 4140kb

input:

PPPPKPKPNNNPPPKKPNPPPPPKKPKKPKNNNPKKNNPKNPNKKPNNPNPKNNNNPKKPNPNKNPKPKKKPNKKPKKKKNKKPKPKKPKNNNKPPNPKKKPKKNKPPKNNPKPKNKNNKKNNKPPPKKKNPKPKKKKNKKNNKNNPPNNPKKPPPNNKPNKNNPKNKNKPNNPPPNKKKPNKPPNKNKPPNKPNKKKPNNNNPPKKKPKKPNPNPNKPKKPNKPPNKPNPNKNPKKNPKPPKNNPPPNKPNPPNPNNNPPPPNNKNKPPNPKKNNPPPKPPKPKNKKKPNPNNNPPPPP...

output:

0

result:

ok 1 number(s): "0"

Test #14:

score: 0
Accepted
time: 4ms
memory: 3748kb

input:

PNNKNKPPKNPKPPNKPPKNNNPPKKNNPNPNNKKPKNPPNNKPNNKKNNNPPPPNKNPPPNKKNNPKNNKNNPPNKNKNKKPNKKKNKPNNNKPKPNKKPNNNKPPNKNKKPKNPKNNKKKPNNKPNNNNPNKKNPPPNKPPPNKKKNPNPPNKNNKNKNNNPPPNPKNNNKNNPPPKPNPPPNKPKPKPKKKPKKKNKKKKPKPPPPKNKKPNNPNPPNKNPPPNNPPKKPKPKKKPPPPPKNNKKNPNNPKKPNNPPPPNPNNKKPPKPKNKKKKPPNKPPNKNNPKKNPKPPNNPN...

output:

1

result:

ok 1 number(s): "1"

Test #15:

score: 0
Accepted
time: 9ms
memory: 4208kb

input:

PNPKNKNNPKKNPKPKNPKNPNPPNKNNPKNKKKKNPKNNNKNPNPKPNPKKNNKNNPNPPKKNKNPPPKNPKPNPNKPNNNPPKNKNNPKNNNPKPNNPNPNKKPPNKNKPKNNPNNKKPPKNPNNNKKPPKKPNKNKKNNPKNNKKPKPNKKNNNNNKPPNPNNKNPPKNKPPPPPPNNKNKNNNPKKNNPKNNNPNPKKNPPKNPNNPKPKPKPKKKKKPKNNKKKNKPKNNPKNPKNPNKKNPKNNKPPKNKKKNNNKNPPPKNKNNKKPPPKNPNKPPKKPNPPKPNNPKKKPNN...

output:

0

result:

ok 1 number(s): "0"

Test #16:

score: 0
Accepted
time: 7ms
memory: 4276kb

input:

PNPPPNKKNKNNPKKNKNNNKKKKPNPPKKPKNPNNKNPPNNNPKPPPNNPKNNPNKNNNKPNPPNKPNPKKKPPKKNPKKPPKKKPKNNPKPNKPKKPKKNKPKKKPPKPPKKNNKPKPNKPPPPNPPKNPKNPPNKKKKNPKKPNKPKNPKKPPNPNNPPPPNNKKNKKNKPKNNNNKPPNKPNKNKPKNNNPPKPPPNKKNNNPNNKPNNPPKNKPPNPKPKPKKNKPNPNNKNKKPPPPKKKPKNKKPPPNNKPPNKKKNKPPKPNKPKPNNKNPNNKNKKPPNKNKPPKKPPNPP...

output:

0

result:

ok 1 number(s): "0"

Test #17:

score: 0
Accepted
time: 3ms
memory: 3744kb

input:

PNNKNKKKKPNKPKPKPKKNPPKPKPKNPNPNPKPNKPNKPKPNNNPNKKPKNNNPNKKKPKKPKPPPPNKKKNKNNPNKNPKNNNPNKPNPNPPNKPNPPKPKPNPPNNKKNPKNNPKPPKNNKNPKPKKKKPNKPKPKPNPPPNNNNNKNPNNPPNPPNPNPKKKKNNPPKNKPKNNPKPPKKPNKKKPKKKPNNPNKNKNNKNNKKPKPPNPPNPNKPPPKNNNKNKKKKNPNPPNNPKPPPNNPKKNNPNNPPKNPNPKKKPKPNPPKNPKKKKKPNNKNKKNNKKKPPKNKNNPK...

output:

0

result:

ok 1 number(s): "0"

Test #18:

score: 0
Accepted
time: 4ms
memory: 3704kb

input:

KPPPPNKKPKPPKNPNPNKKPKPPPPNKKNKPPPKPPPPNNKKPNPKNPKNKNPNPNPPNKPPNNNPNNPPKPKNNPNKKPNKPPPPNKKPNKKNKNKKKKPNKKKKNPPKPNKKKPPKPNKPKPNPPPNPNKNNKKNKNKKKNKPNPKKPKNPPNNPKKPKPNKNPPPNKKKNPKPPNNNKPKKNNPPPNPPNNPPPNKKKPKPPKNPNKKKPPNNPPPKPPKKNNPKNPPPKKKNNKNPNPPNNKKPPKNKPNNKNPKKPNPNNNKPPNNPNNPNNNKKNKPKNKPPKPPPKKKPPPP...

output:

0

result:

ok 1 number(s): "0"

Test #19:

score: 0
Accepted
time: 7ms
memory: 4196kb

input:

NPKNKNPPNNNNPPPPPNKPKKKNNPPPKKKPPPKNNNPPNKPKKNKNPKKPNNNNKKNKKNKPPPNKPPPNNNKKNNNPKNPNKPKKPPKKKKPPKNKKNNPPPKNNNKPNPPNNNKPKPPKPNKPKPPNKKKPPPNPKNNNKPNPKKPPNPNPKPPNNNPPPNPNPKNPPPKNKKNPKPNNKKKPKNKNKPNPNNPKKKPPNPPPPPNPPPNNKNPKKKKNPPNPNNNNPKNNPKKPKKNNPKNPPNPKPPKKNPKNPNPKNNKNKPNNPKPKKPKNNNKNPNKKNKNNNNNNNNKPP...

output:

0

result:

ok 1 number(s): "0"

Test #20:

score: 0
Accepted
time: 7ms
memory: 4208kb

input:

NKNKPKNKNKPPPKNKNNPNPNNPKNPKPNNKKNPPKKPNPPNNKPKPKPNNKNPNNNPNPNKNNNNPPNKKKNPNKKKKNNPKPKNNPPKNNNKNNNNNKNKPPKKPNNNKPPKNKKPNKPPPKNPPKPNPPKKNNPKKPPKNNNKKNPPNNKKPNKPKKKPNKNPNPKKNPPPKPNKKPNKKPNKNPKPPPPNKPKNKNNNKPKPNPNKKNNNKKKKPKPKNKPNKNNNNNKNPKNPKKPKPNPKKNKPPPPPPKKNKKNPNPKNNKKPPKKNPPPNKPNKKNKNKPPPPKNPPKPPP...

output:

0

result:

ok 1 number(s): "0"

Test #21:

score: 0
Accepted
time: 0ms
memory: 3960kb

input:

KNNPNNKKPKNKKNPKNPKNPPNNPKNPPNNPNPKPNKKNPNPNPPKKPPKPKKPPKKKKPKPKNNNKNPPKNKKPPKNKPNKKKKKPPPKPPNPPPKNPNNNPPNNPPNPKKPKKKNKKPNPKPPNNNKNPKKPPNPNPPKNNNNKPNNPKKPPNPPNPPNPKKPPNNKNPNKKNPNKPPKNNPKKPKNNNNKNNPKPKNPKNKNKPPNKPKPNKKKPPKPKNPPKKPKKKKNNNNPNNNNNPPNPPPPPNKPNKNKPPPNPPKNNNPKPNNKPKKNKKNKPKKNKNPPKKPKKNPPKN...

output:

0

result:

ok 1 number(s): "0"

Test #22:

score: 0
Accepted
time: 9ms
memory: 4204kb

input:

KKNNPKKKKPPNKPNNNKNPPNNNNNNKKPKPPNKPNPKKNPPPPPPPNNKKNKNKPPNKKKKNKPPKPPNKNNKPKKNKKNPKKNNKPKPPKKNPPNPPPKPPKKNKNPNNPKPNKNKNNKPNPNKNKKKNKNPPKNPKNNPKPKNNKKPPNNNNNKPPPNKNKPNKKNKPPKPNNNPKKPNNPKNKPPKPNNPNPPKNPNPPKKPNPNPKPPKKPNNPPPKKPKPPKPKNPPKKNPKNNKPPNNKPPPNPNKKNPKNPPNPKNKKKKKKNNKPNPKPKNKNNPPKKNKNKKKNNNKNN...

output:

1

result:

ok 1 number(s): "1"

Test #23:

score: 0
Accepted
time: 10ms
memory: 4176kb

input:

NPKNPKNPKPKKKPNKNNNKPKKPKKKNNPPPNNNNPPPPNKKNPKKPPPPNKKKPPKPNKNKKPNPNPNKNKKNPPNNPKKPPNKPNPNPPKKNPNPNPNPKKKPKNNNKKPPPNKPPPPNKNNKNPKNKKKNPKKNKKKNPKNNNNNNPNKPNKKPPNNNNKNKNNKNNPPPPNNNNPKNPKPPNKKNPNKKNPPKKPPNNKKNPKNPNNPNNPPPKPNKKPNPNKNKPNKKNKNKKPKKKPNNNKKKNKPKKNPPKNPNPPPPKNNNNKKKPKPPKPPNPNPPNNNKPPKKKPNPPP...

output:

0

result:

ok 1 number(s): "0"

Test #24:

score: 0
Accepted
time: 2ms
memory: 3684kb

input:

PPKPPNNKPKPNNKKNPPPPNPPKNKNPPPNPPPKPNPKPNKKKPKPPNKKKPNNKNNPKPNPNNNKPPNPKNNKNPPPNNPKNKNNPNPNNPPPPKKPPKKPKNNNPNKPKPKNPPKPKKKPNNNNPPNPKPPPPKPKPNKPNKKNPNKKNPNPPNPPPNPKPNNKPKKPKKKKPKNKNPKKNNKNNKNNNNKPPPKPNKNKNKPNPPKKPKPNKPNPKNKPKKKPPNNPKKPKKPKPNNKPKNPKKNPNPPPKKNPKNNPPNKNPKPNKPKNPKNPNNPNNKKNKKPNNNKPKKKPKP...

output:

1

result:

ok 1 number(s): "1"

Test #25:

score: 0
Accepted
time: 1ms
memory: 3588kb

input:

PKPNPNNNKPNPPPNPNPNKKKPNKNPPNPPNKNPNNKNKNPPKNNNNKNPKPKKNNPKNKNPNPPPNKNPPPKKNNPNNKNKNKKNNPPKNKKKNPNPNPKNPNNNKKKNKPNKKNNNKKPNNPNPNPNKPNPNPNNNPNNPNKPPKPPPPPKPNPKPPPPKNKKPPKNKPNNPNNNNPPKKPKKPKKPPKPNNPKPNKPNKNKKKPNPKNPKPPNPPNNPPKNKNKKKNKNNKNNNNPKKNNKKPKNKNNPKKPNNNNPNKNPKNPKNNNNNKPPNNPNPPKKNNPNNKNPNPPPNPP...

output:

1

result:

ok 1 number(s): "1"

Test #26:

score: 0
Accepted
time: 7ms
memory: 4156kb

input:

KNKPNNNPNNNNNPNPKPKKKPNNKPKNPKPNNPNNPNPPNKPPPPNKPNKNNKKNKPKPPNKPPPPPKKNNKNNPNPNKKPNNNNNNKPPPPNPNNNKPNNKKNNKPNKKPPNKPKKPPKPPKNNNNKPKNKKPKPPKPPKPPPNKKNKNNPNPPPKKPPKNKPNKPNNKPPNNPNPPKPPKNKNPNNNNKNPPKKPNPKNNNPPNPNKKKNKNKKKNKKKPKPPKKPNPNPPKKKKPKPKPNPPKNNKPKKKKKNKPNKPPNNKKNNNNNNPPNPNNPKNKNKKKKNPKNNNPPKNKP...

output:

1

result:

ok 1 number(s): "1"

Test #27:

score: 0
Accepted
time: 7ms
memory: 4136kb

input:

KPKNNKKNKKKKPPPNPKNNNNPPKKPNKKPNNPNKNKPPKNNNNKPKPNKNKNKNNKPNPNKNKNKPKNNKNKNKNNPKNNPPPNNNNNPNNKNNPPNKNKKKKNKKNPKPPPKNKNKPNKPKKPPNNPPPNKPNPKNPNPKNNKKNNKPNNPKPNPKPNPPNNPKNPNPPNKPKPNKNNNPKNKKPPPPNNPPNNNPPKNPKKNNNPPNPPNKPKKPPKPNPNNPKNNNKKNKNPPPKNNNNPNKKKKKKKPKKPPKKKNKKPNNPPNPKPPPPKNKKKPKNKPPKNKNKPKKKPPNN...

output:

1

result:

ok 1 number(s): "1"

Test #28:

score: 0
Accepted
time: 4ms
memory: 3748kb

input:

PKKKPKNKPKKPPPKKPKPPPKNKNPNKKKPPPNNNNKKNPNKKNNPPNNKNNKPPNKPPPKPKPKKNKPPPPPKNNNNKPNNPKPNPKNNPKKNKPKNKNKPNKPPKPKKPNNKNPNKNKNPKNNPPKPPNNNNNNNNKKKPNKKNNNNPNPPNKPPPKKKKKNKPPKPPNKPNNKKPKKNPNKKPKNNKKPPNNNPPKKNPKNNPKKPPNKPNKPKPPPPNNPNNKKNKKPNKPKNNPKKNNPPPNPNPPNNNNPPKNKNNPKKKKNKPPPPKKPPNPPPNNPKNKKNNKPKNKPPNK...

output:

1

result:

ok 1 number(s): "1"

Test #29:

score: 0
Accepted
time: 10ms
memory: 4124kb

input:

PKPKKKNPPNNNNNNNNNNKNKKNPNNPNPPPNKNKPNNKKKKNPKPKKPNPPKNNKKKPPNPNKPKPNKNNKNPNKNNPPKPKNNPKKPKNNPPPPNNPKNPKPNKKKNKKNKNNNNKKKNNNNPKKKKNPPKKNNKKPKNKPNNNKNNKNNPKNNNKPNNNPPNNNNNPNNPPKKKNPNPNKNNKPKKPKPPNNKNPKPPNPKKNNKKNNPPNPPKPNPNNPKNNPPNPNKPKNPNNPPPNKPPPKNNKPNKNKKNNKNPNKKPKKKKKNKPPPNPKNNNPKNPNKNKKNKNPPPNNP...

output:

1

result:

ok 1 number(s): "1"

Test #30:

score: 0
Accepted
time: 4ms
memory: 3888kb

input:

NKKKKKPPPPKPPNNPPKPNPNNPPKKNPNKPNPPNNKKNPPPKNPKPKPNPNPNKKNNKNNNPKNKPKNNKPKKNPNKNPPNPKPNPNPKKKNNKKKPNPNPKKNPNNNKKPPNNPKNNPPKNPKKNNPNPPPPNNNPKPNKKNKKKKPNPKPPKPKPNKNPKNNPNPNKPNPNKNKPPNPNNKKPPNKPNKKKKKNKKNNKNPPNPNKNNNKNNKNKPPNPNPPNPNPNPKNPPNKPPKKKNPPPKPPKPKKKPPPPKNKPKKKKKNKKPPPKKKNPKKPPKPNPNNPKKPPPPNNKN...

output:

1

result:

ok 1 number(s): "1"

Test #31:

score: 0
Accepted
time: 10ms
memory: 4044kb

input:

KNPKPNNNNNPKNPKKKPNNPKKNNPNKPPKPPPPPNKNKKPKKPNKNPKNNNNKNKNNNPNPPNPKKKKPNKKNNPNNNPPKKPKNKNKKKKNPPPPPPKKKKKNNNPKPKKPNNPKKNKNPKNKPKNKKNKPNKKNNNNNPNKNKKNPPKNKPNPNPNNKNKNPKNNKPNPPPKKNKKKNPNNPPPPPNKKNKPKKPPNNNPPKNNNKPPPPKKNKKKKPNKNPPPNKNPNKNNNKNKKKNPKNNNKNKPNNKKKKPKPKNPNKKPNKPNPKKKPPNNPNPKPPPKPNNPKNKNNKKN...

output:

0

result:

ok 1 number(s): "0"

Test #32:

score: 0
Accepted
time: 10ms
memory: 4124kb

input:

PPNNPPNKNKPNNNPPPNPKPPNNNPPPKNKNKNKPPNNNNNKNNKNPKPPPKNNKPKKKKNPPKPNNKNKNKPKKNPNNKPKKKKKKKPPKPKNKPPKPNKNNKPKKNPPKKKNPNKPNKNNKPNNKPNNKNNNPPPNNPNPKKPPKNKNNNPNKNPNKNKKPNNNPKNPPKPKPPPNNNNKPNNNNPPNKPNKNKKPKKPPPPKNKPNPNPKKKNPNKKKKKKPKNPNKPNPPNKKNKKNPKNNKNKKPKNNKNKPPKKKPNNNPPKKPKNKKPNKNNNNNNKKPPNNPPNNKKKPKN...

output:

1

result:

ok 1 number(s): "1"

Test #33:

score: 0
Accepted
time: 9ms
memory: 4140kb

input:

NNPKKKKPKNPPKKPNKPPNPKPPNPNKNNPNPNKKKKPKKKKNNNKKPNKKKPPKNNPKKNKKNKPPPKNKKKKNKNKNKPKPNPKKKNKNNKNKKNKNKPPPNNKKNPPPNNKKNNNNNPNPKNPNKKKKPNKNNPPPNKKKKPNPNNNPPNKNKPKPKPNNNKNKPPKPKPKKKKPPPNPPKPPPPKPPNPNNNKPPNPNPKNNPPKNKKPKKPNPPPNKNNPKKNPKKKNKKKKPNNNPNPPPNKKPPNKPKKKPPNKNPNPNNPPPNKKKNNKNPNKKKPKKPKPKKPPPPNNNN...

output:

0

result:

ok 1 number(s): "0"

Test #34:

score: 0
Accepted
time: 7ms
memory: 4324kb

input:

NNPPNPPPPPKNKNPPNKKPKNNKPPPNPPNNPPKNPNKNNNNNKNPKNKNNPKPPNNPKPNPPNKPKNNKNPPNKKPPKKKKPKNKNPPPPKPNPPPPPNNPKPNNKNPKPPPNNNPPPKPNPKPNKPPPPKKKNNPNKKKPKPNKNNPNNKNNNPNNPKNKKNKNPNNNKKNKPKKNKNPNPPNKPPNKKNPNKPKKPKKPNPKKKKKPNKKKNNNKKPPPPPKNKKNNKKKNPKNKNKPNPKKKNKKPPNKKKKNNKPPPKKNKNKKPNKNKNKPNNKNKPKNKPNPPPKKKPPKKP...

output:

0

result:

ok 1 number(s): "0"

Test #35:

score: 0
Accepted
time: 3ms
memory: 3748kb

input:

PKKPKPNNNPPNPNNKKKNKNPPNKPKKKKNNKPPNNNNKPNKKNPNPPKKKPNPKPPNNKPKNPKNNPNNPKKPNPNPNKNKKKKNNPNNPNNKPKPNNKKKKKKNKPPNPKPNKPKNPNKNPPNNNPKNPPPPNKPNPPNKKKKKPPPNKKKNKKKKNKNPKPKNNPNPNPPNKNPKKNNPNNNKNPKPNPPPNNNKPKKKKNNNKNKKPKPNNKPNPKPKPPNKKKKKPPNNKNKPNNNKPPNPPNPNPPPPNPNNKPPPNNPPKNPPKPPKKKNNNNKKPPNPPNKKPKNKKPNPN...

output:

0

result:

ok 1 number(s): "0"

Test #36:

score: 0
Accepted
time: 10ms
memory: 4176kb

input:

PKPNNPKKNKNKNPKKKPPNPNKKKNNPNKNKNPKPNPKNKKNKKKPPNPKNNNPPKKNPKNKPKPNNNPNNPPPNNKNNNPKNNKKPNKPPKPPKPPPPNNKPNNKKPKNPNNPPNPNNPPKNKKPKKNNKPPNNPKNNNPPKPPKPKKNPPKKPKKPPPKKPPKNNPPPNKNPKNNKPKKPNPPPNNNKPKKKPPNKPKKNKNNNNNKNPNNNKKNNPPPPNNKNKNKPNKNKKPPKNKPKNPNPKPNKKNNPKPPNPPNNPKNNPPNPKPPNPKKKKPNKKKNPNPPNKKKKPNKPP...

output:

1

result:

ok 1 number(s): "1"

Test #37:

score: 0
Accepted
time: 10ms
memory: 4140kb

input:

NKNPPPPPPNPKKNKPNPKKNPPNNPNPPNNPNNNPKKKNKKKNPNPKPPPPNNPPNKKNKKNKPPNPNPPPKPPNPKKNKNPNPPKKNNPKKPPNPPNNNNKPNKKNPNKPPPKPKNNNPNNKNPKKPNNPKPPPNPPKKPNNNKPPPPKKKNNPNPNNNPKKNPNNKNPNPKKKPPKKPNKKPPNPNNPPNPKKPPPPNNKPNPPNKPNPPPKKPNKNPKPNKPKPPKPPKNKKPKPNPNKNNNKNKNNPKPNPPKNNKKKPKKNNPKNKKNPNKKNKNKNKKPKKPKKPNNKNKKKN...

output:

0

result:

ok 1 number(s): "0"

Test #38:

score: 0
Accepted
time: 8ms
memory: 4140kb

input:

NPKKPPNKPKNPKNNNKNPNPNPNPNKNNPKKPPKKKKKKPNKPNPPPNNPNKNKNPNPPNPPNKKKNKNPKKPPNKPPNNNNNPNNKKNPKNNKPKKPNNKNKPNPNKPPKKKNPNNNNKPNKPNKPNNNNNNKKKNNPPPKKPPPPKKNKNNPNPPPPPKNPPKNNKNKKKKKNPKKNKNNNNNNNKPPNPPPNNPKKNNNKPPKPKKPPNKNPPNKPPPNPKNKPKKKNNNNNNKPNPKNKKKKNNNPKPNPPPKKKKNKPPKPNNNKNPKNNKPNKPNNKKKPKPPNKKNPKPKKN...

output:

1

result:

ok 1 number(s): "1"

Test #39:

score: 0
Accepted
time: 1ms
memory: 3672kb

input:

KPKPNPPNPKPPPKPPPKKKPNPKNNNPPKKNNPKKKNPNNKNPPPKPPPNPKNKNKPKKNPKPKPPPNNNPKNPPPPNKPNKNPKPKKKPKKPPKPNPNNKNNNKPPKPPKPKPPPPKPNKNKKKNNPPPKPNKNPNKPNNPNPNKKKNNNKKKKKPKKPKKPKKKPKPNKKNKPKNPPNKNPKPKKKKNNKNKPKKKNKNNKNPKKPKNPPNKNKPKNNPKNPPPPKNNNKPKNPKKNNNKNKNPNNKNKKPKPKNKPNKPKNNKNKPKPPPPPKPKPNPNNNKKPPKKPNKPKKKKN...

output:

1

result:

ok 1 number(s): "1"

Test #40:

score: 0
Accepted
time: 10ms
memory: 4320kb

input:

NKNKPPPKNKPKNNKKNPKKKPKPNKPPKKNKNKNNNKPPKKNPNKKNNNNNKKPNPKNKKPPNNNNKPPNNPNPKNPKNKKPNPNPPPPNPKNPKNKNKKNPPKNNPKKNNKKNKNKKNKNPKPPKPNPKPNPPPKNKKPNNNNNKPNNPNNNKKPKPKPKPKNNNPPPNNPPNPNPNNPKPNPPNNNNKNNNNNKPKNPPNKKNPKNNNPPNKKKPKNKKNKPPKKPKKKPKPPNNNPNPPPNNNPPNPNNNKKPPPPNNPNPNKPPNPKPKKKNKPNPPKKPKPKNNPKPPNPNPKP...

output:

1

result:

ok 1 number(s): "1"

Test #41:

score: 0
Accepted
time: 10ms
memory: 4124kb

input:

NKNKNKPKPPPNKPNKPNKKKNNPPPNNNNPNNKKNPKNNPKPPNPNNKKNNKKKKPNNKKPKPNNKPKKKKNNKNNNNKPNPKKPKKKNNKPNKNNPNKPKNKNKPNPPNNPKKNNPPNKKNNKKNPPKPPPPPPKNNKPKPPPPKNKNPNPKPKNPPPPPNKKNNNPNNNKNKNKNPPPKPNPPNPPPNNNNNKPKPKKKKKKKNPPPKKPKNNNKKKKPPNPKPKPPNPNPPNKNKNPNKKNKKPPKPPKKNKNPKNNNPNKNPPKNKPPNKKNKKNNKKKNPPNNKNPNPPKKNNK...

output:

1

result:

ok 1 number(s): "1"

Test #42:

score: 0
Accepted
time: 10ms
memory: 4204kb

input:

PKNKNKNNPKNPPPNKKPNPKNNKNPNKKPKKPKKKNPKNKPPPNPPNPKPPKKNKNKNPKPNKPNKPNKPPKKKPNPKNPPNKPKPKNKPKKNPNNNKPKKPKKKPPNPKKNKKKPKKNNNNNKKKPKPPKNKNPKNKPNPKKNPKKNNPNKKPNPNKNNPKNNNNNPNKNPKPPKNKKKPKKKPKKKKKPPPPNPNKNPPPPKPNNKKPKKPPNNPKPKKNKKNPKNPPPKNPKKKKKPNNNPPKPKPPPPNPKKKPKKPPNNNKKNNKNNNKKKKPNPNKPNNKKNPKKKPPKNKKN...

output:

1

result:

ok 1 number(s): "1"

Test #43:

score: 0
Accepted
time: 2ms
memory: 3676kb

input:

PPKKPKNNPNKKNKKNPNKNNNPNPPPKNNKPNKNPPKKNKNNKNPPPKNKKNPPNKPNNPKNNPPPKKNPKKKPPPKKKPPNKPPNPKPPPKPPPPPNNNKNNKKKNKNPKKKKPNNPPKPKNPNPKPNNNKPKKNPPPKNNPNPPNPNKPPKKKKKPNNNPPNNPNNKPKPKKNPKPNKPKNPPKPPPNPPPPKKKPNKKPNKNPKKKPKPKPKPPNPKNNNNPNKNKPNNKPKPPKPPKNKNPNKNPPPNNPKKNKKNPPPNNNPNKKKKNKNKNPNKKNKKNPPKKKPNPKPNKNN...

output:

0

result:

ok 1 number(s): "0"

Test #44:

score: 0
Accepted
time: 5ms
memory: 3748kb

input:

NNNNPPKPPKKKPPKKKPPPPNNKPNPKPNNKKNNPNPNNNKPNNNPPKNKPPNKNKPPNNKPPNPPKKPKPKNKNPKPNPNNPNNPNKKPPNNPPNPPKKNPKPNPNKKNPPNNKPNNKNNPNPKPNPPNKPKKNKNNPPKNNNPKPNNNNNPNNNNNKPPKPPPKKKPNKPKPKPNKPKKKKNPKKPNPKKKNNKNNNPPKPNPKKPNKPKNNNPPNKKKNPNKKPNKKPPKKNKPNKPPNNKKKPPNPPPKKPPPKNNPNNKKNNPNNNNPKPKKKKPKNNPPPPNKPPNKKKKKNK...

output:

1

result:

ok 1 number(s): "1"

Test #45:

score: 0
Accepted
time: 8ms
memory: 4324kb

input:

KNPKKPNNPNNNNKKNKNPPKKNKNKNPNKPNKPPKKKNPNKKPNNPNNPKKPKKKPNNKPKNKNKKNPKKNPNNPPNNKKKPNPKPPPPNNKNKKPNNKNKKKPPPPKPKPPNKNKPPNPKKNPNNPKPPNKPKPPNPNPPNPPPNKPKKNNNNKPPPKKNPPKPPKKKKPPKNPNNNKNNNNNKKPNPPKPNPPPKNKKPNPKNKPPNKKPKKNNKNPPKNKKKPPNKNKPKKNKKNPNKNNPKPKNPPNKKPNNKPPKPPNKNKPKPPNPPPNPPNPKNNKKNNNNNPKPNPKNPNK...

output:

1

result:

ok 1 number(s): "1"

Test #46:

score: 0
Accepted
time: 6ms
memory: 4120kb

input:

NKPNNNPNNNKNNPNNPNPNNKNKNKKPKPKPNKPNPPKKNNNPKPKPKKPNPPPKKKNPNKNNNKKKNNPKPKPPKNPPKNPNPPKPPPPPPNKKNNNNNPNNPNPNNKKKPNNPPKPNNKKPPPKKNPNNNKNNNKPKNPNPKPNKPNKKPPNKPPNNKKKPKNKKPKKPKPNPKPNPPNNPPPKPKNNKNNPPNKKNPKPNPKKKNKPPKNNNKNPPKNPPPPKNPKPPKNNKNKKKPNPNPKKKNKPKPPPKNNKNNNNPPNPNKKNNPNKNKKPNKNNNPKKNKKNPNPPNKPNN...

output:

1

result:

ok 1 number(s): "1"

Test #47:

score: 0
Accepted
time: 9ms
memory: 4156kb

input:

NNPPPKNPPKKPNPPKPKNNKPKKPKKPPPNKNPPNNNKNNKPNKPKNKKKNPNPPPNPPNKKKKNPKKPPKKKPNKKKNNNKPKNKPKPPNKPKPKPKKKKPKPNPNPNKKKNKPKPNPNNNKKKNPNNKKKPPNPNKNPNKKNPKPNPKNNPKNNKNNKPPNNNNKKKNPKKPKNKNKPKPPKNNPKKNKNPPPNKKPKPNKKPNPKPNKNNNPNNKNPKPKNNNKPKNKNPKKNPNPKNNNNNNKPKNPPPKKKKKNKPKKPKKNNKKNKNPKKPNNPNNPNPPPNKPKPPPPPKPK...

output:

1

result:

ok 1 number(s): "1"

Test #48:

score: 0
Accepted
time: 7ms
memory: 4200kb

input:

NPNPPKPPNKPNNNPNNKKPNNNNKNKKNPPNNKPPPKPPPKNPPKNPKNNKNPKNKPNNNKNNPNPPNPNPNNPPNPPNNPKPNNNNKNKKKNPKKKPKKNKPKPPPKPKKPNNNNKNKPPNPNKNNNPPNPNPNKNKKKPKPNKKKKNPKNKKNKNPPKPPPPNKPPPPPKPPNKNNKPPPKNPKPNNKPNKKPPNNPPNKPKPPNKKPKKPKNNNKPPNKKNKKPKNNNKNPPKPPKKPPNKNNPPPPNPNPNKKPKPKKKPNNNNPNPNPKPKKPPPPKKKPNPNPNKKKNPNPNP...

output:

1

result:

ok 1 number(s): "1"

Test #49:

score: 0
Accepted
time: 0ms
memory: 3916kb

input:

NKKPKNKPNNPPKPPKPPNNNKPKNKNPPPNPPNNPNNNKNPPKKPKKNNPNPKKNPKPPPNPPPPPPPKKNPPNPKNNKPKPPKPKKNKKPKKNKNNNNPKNNNKKKNKPKNKNNNPPPNNNKKPNNNNPPKPPNNNPNNPNNPKNNPNKPNKKNKKPNKPKKNKKNPPNKNNKNKKPNNNNKKNNPPNPPNPPNPKPPNKKPNKPNNPPKPPNNKKPNPKPPPKKKNNKPPNPKPPNPPKKPPKPKKNKPPKPPPPPKPPNKNPNPNKNPNKPKNKKKKPNPNPKPPKNKKKKKNPKK...

output:

0

result:

ok 1 number(s): "0"

Test #50:

score: 0
Accepted
time: 7ms
memory: 4280kb

input:

PKNPNPPKPNPPPKKKKNNNPPKNPNNKPPKNKNKKNNNNNNPKPNPPKNNPKPNPKKNNKNPKPKNPPNPKNPPKKKKKNNKNNKKNPKKKPNNKPPKNKKNPKNNNKNKKPPKNKKKNKNKPPPPNNNNKNKKKPKNPPNPNPKPNPNKNNNNNNPNKKKNNKNPKPKKKKNPPNPPKNNKPKNPNPPNKKPPPPNPKNNNKKKPNNPNPNPNPNPKNKKKNKNPKPKKNPNPPKKPNPKPPPPNNPKNKNKNPPKPNPNNKKNPNNNKNPKKNPPPKKKPNKPPPPKPNKKNPKPPN...

output:

0

result:

ok 1 number(s): "0"

Test #51:

score: 0
Accepted
time: 1ms
memory: 3752kb

input:

PNPPKPKKPKKNPNNNNPKNKKNPPPNNKPNPKKKPKKPNKKPNNPPPKPKKKNNNKNKPPPNKNKKNNPPKNKPNKNKNPPPKPPKNPKNKPKPPKNKPNKPNPPPNNPKNPNPKKKKKKNKKNNPKPPNNNNNPKNPNKNKNKNPNNNKPKKKKNPPNNKNPKPNPPKNNKPNNPPKNNNPKNNKPNPNPKKKPNKPPPKKNKPPKKKKKPNPPPKKKNKNPKNKPKKPNPPKPPPKKNPPKKPPNNNKKKPNNPNPPPPNKNPNKPNNKKNNKNPPNKPPPPPNNPPNPNKKPPNNP...

output:

0

result:

ok 1 number(s): "0"

Test #52:

score: 0
Accepted
time: 10ms
memory: 4136kb

input:

KNNKNKKPPPNPNNNNKKPPPNPPKPKPNNPNPPPNNNPNPNNNKNNNPKKNPPPPNNPNPKPNNNNNNKPNKNNPPNNPPNPKPPNPPNPPKPPPPPPPPKPKNKKKKPKPKPKNKKKNKNPNNNNKNKNNKNNNPPPPNNNNPPNNPNNKNNPKPNNKPNKPNKPNNPKNKNNPKPPPPPPNNKKPNKPPKPNPPPPKNNPNNPPPNKPKKKNKKKNNPNKNPNKPNPNPKPPPPKKNPKNPKPNNNPKKNNNKKPKNKNNNKNPKKKPNNNPPPNNPNNKKKPNNNPPPKKPNPKNK...

output:

0

result:

ok 1 number(s): "0"

Test #53:

score: 0
Accepted
time: 4ms
memory: 3900kb

input:

KNNNNNKKKKNPNNKNPKNNNNKKKNNNNPKNKKNPPPPNNPKPKKNKNPKKPKKKKPPNPKNPKNNKNNKKKKKKPNPPKKNNKNPNNPNKKNNNNPKNPNKNNNKKKNNPKPKPNPPPPKKNKPKNNKKNPNNNPNNKNNKPPKPPKNPNNNKNKPNPKKKNNPKPKNKPNPKPPPKPNNNNPPKPPPPNKKNKKNKKKNPKNPKNKKPPKKKKNPKPKKPPPPKKKNPPPKKKKNNKNNNKNNKKNPPPKPNKNPNNPNNKNKNNPNPKPPNPKNNPNNPKPKKKNNNKNKNNNPNN...

output:

0

result:

ok 1 number(s): "0"

Test #54:

score: 0
Accepted
time: 4ms
memory: 4140kb

input:

PPNKKKNNKPPKPNNPKNKPNKKKNKPPPKKKKKPPPPKPNPKKPKKPPNKPNKPKPKPPPNNPPPNNNNKPKNKKKPNKPKKKKNKNNPPKNKNPNNKKNPKNKNNPPKNPPPNKNNPKPPNKNKNNKKPKNKNPKPPPPNKKKKPPKNNPNKPNNPPNNPKPNKKPNKKKPNNPNNNNKNPNPKNNPKPPPPNKNKPPPKNKKKKNPPNNKKNKKKPKKNKPKNKNPNPKKPNPKPNPKNKNNKKPNNPNPPKKNPKNKKPKNPNKKPKPPKPNPNPNPNKKNPPPNNKPKNPKNNNK...

output:

1

result:

ok 1 number(s): "1"

Test #55:

score: 0
Accepted
time: 8ms
memory: 4172kb

input:

NNPNNNNNNKNNNKKKKNKKPPPKNKKPPNPNNPKKPKKKNNKNPPKNKKPNPPNNKPPKNPNPKKNKKNKKPKPPKNKKPNKNKPKPKKNPNKKNPPPPPPNPKNPNKKNNPNKPPPPNNNKPPKNKNKPNKPNPNPPNKNNKNKNPPNPKPKKNNKKKPPKNKNKNKPKPKNPPPNPNKKNKPPNPKNKNPKPKKNPKPKKNNPPPNKNKNNPNNNKPKNNPPKKPPPPNNNKPPNKKNNKPNNNNPPNPPNPNPPKPPPNNNKKNKPPPKPNNNNKKKNNPKNKPKKPPPPKPNPNN...

output:

0

result:

ok 1 number(s): "0"

Test #56:

score: 0
Accepted
time: 10ms
memory: 4212kb

input:

NNPKPPKPKNKNPPKPNNKNKPPKNPKNNKPKPKNNNPKKNPNKKNNKKKNPNKPNKPKKKKPNNNNPNNPPPPKPKPPPKNPKPNKPPNKKPPNNPPNNPNKPNPPPNPNKNPNKNNNKNKNPKKPKKKKKPNKNNPKNNPKPKNPPPNNNNNNNPNNNNPKPNPKNKKNNNKNPNNKKKPKKPPKPKPNNKPPNKNKNPNNPPNPNNKKPPNKKKKNKKKKPPKKNKNKNKNPNKNPPKKNNKKKNPNNNKPNPNNPNKKPPPNKNNKPPNPKKPNNKKKNNKNPKNPPKKNNPPKNN...

output:

1

result:

ok 1 number(s): "1"

Test #57:

score: 0
Accepted
time: 9ms
memory: 4128kb

input:

NPNKKNPPKKKKNKNNNPPKPKNNPNPKNNNPNPPNNNNKNPKPNKKKNPKKPKPPNKKPPPPNPKPNNPPNPPPKPNPNNKNKNKNNPPPKKPPNNPPKPKNPKPNKPPKNNNKKKPNPPNPKKNKNKKKKNPKKNNNNNNPNNNPKKNNKNKPPNKKPNKKKKNPKPNKPNKPPPKKNPPKNKNKNNPPNNNPKNPNPKKKKPPKNNNNNKNPPKKNKNNNPKPNKPNKPKNKPNPKNPNPKPKPNKKPPKNPPKNNNPPNNNPPKNNNNNPPNNKNKKPKNPPPNNPPKPKPNKKNK...

output:

0

result:

ok 1 number(s): "0"

Test #58:

score: 0
Accepted
time: 6ms
memory: 4176kb

input:

PPPKKKNKNKNPPNNKNKNNKNKKKKNKKKKPNNKPNPPPPNPKNPNKKPKPKPNKKPPKKKPNNPNKNNKKNPPPPNKPPPNPKNPKPNNPNPKKNPNPPKPKNKNPPPKNNPNPKKNNKKPKPKKKPKKPPPPKPNNKPNKNPPKPKNPKPKKNPKPKKPNKPKNKPKNNNKKKPPPPNPNPKNPKKNKKKNKKNPNNKKKNNKNNKNKNNKNNPNNPPNPNNNNPNKPPNKPPPPKPPNPNNPNKKNKKKKKKNKPPNKPNNPKNNPPPKNPKKNKPKPNKPNNNNPNNPKPNKNPP...

output:

0

result:

ok 1 number(s): "0"

Test #59:

score: 0
Accepted
time: 10ms
memory: 4192kb

input:

PKNNKKNNKPNPKPPPPKNKKPNNPNKPNKPNPNNKPKPNKNPKPPPNPPPKPKNKPNKPPKKNPPKKKPKPKKKPKPNNPNKPNPPNNKPNKNKPNPKNPKPNPKPKKKNPNPPNPKKNPKNPNNNKPKNPPNNPNNNKKPKKKKKNKPNKKNPPPPNKKKPPPNPNNPNPNNPNPPKNNPKKPKPNNKKNNNKPPKPNPNKNPKPKNPNPKNNKKKNPKPPKNPNPKPPPNNKPNNKKNNKKNKPNNNPNNNPNKNKKPPKPKKPKNNKKNKPKNPNPKKPKPNKNKKKPNPPNKKPN...

output:

1

result:

ok 1 number(s): "1"

Test #60:

score: 0
Accepted
time: 4ms
memory: 3732kb

input:

NPKKKPNKKPNNNKKKKKPPKKKPNPNNNPKPNPNNPPPNPPKPNKPPNPKPPNNKNPKPNKNNKKPPKKPPNPNPNKKNNKNKPPNPNPKPPNPNNNNPPKPNNPPKKKNPNNPNKNNPKNNPKKPPNNKNKNNPNPPNKNPNNKKPNPNNPNKKKPNNKNKNNKPKNKNPNNPKKKNPPKPPPNKNNPKKPKNNPNKNKPPNKKPPKPPPNNKNKKPNPNKPKKPPNPNKNPPNNPKNNKKNNKKKKPKNNKKPKNNKKNNPKKKNPPKNKNPPNPKKPNNPNPNPKPNPPKNPKNKK...

output:

1

result:

ok 1 number(s): "1"

Test #61:

score: 0
Accepted
time: 5ms
memory: 3960kb

input:

PKKKNPKNNNKNPPPNKPKNPKPPNNKNNKPNPPPPPNPNKNNKKKNPKKNPKPKPPPNNPNKKNNPKKNNNNNNNNPKKNNNPNKPPNKKNNKKPKKPNNPNNPKNPKKNPKNNPNNKNPPNNNKPNNNKNNNPPNKPNNPPPKPNPNPKPPPNNPNNPPNKKNKKKKPKKNKPKPNNPPPKKPNKKKPPNNKKPPPKPPPKNKNKPKKKKKKPPNPKPNPPPNNKNPNKKNPPKPKPNPKNNNNPKKNPKNNNNNNKPPPKPPKNKNPPPPPPPKPPPNKNKKNNNKNKKNNPNNNKK...

output:

1

result:

ok 1 number(s): "1"

Test #62:

score: 0
Accepted
time: 10ms
memory: 4196kb

input:

PKPNKPPPKKKNPPKKKPPPKPNNNKKNPNKKNPPKPPKPKPNKKKKNPPPPKKPPKNPPKPPPPNPKNPNNNNNPNPKKPNKPNPKPNNKNKKPKPNKPKNNPNNNPPNNPNKKNNKPNPNNNNPPKNKKPPPKKPKNPNNKKNPKNPKPPPNPPKPKKNNNNKNKKKPKNKNPKNKKPKPPPNKKKKKKKKPKNPPKKNPNNKKNKKKPNPNPPKPPPKNPPPNKPNNNKPNNNNPKNPNKKNKNPKKPPNKKPNNNPPPNNPKNKPPNPPNNNPNPNKNKPPNPKKPPKNPNPKPPP...

output:

0

result:

ok 1 number(s): "0"

Test #63:

score: 0
Accepted
time: 1ms
memory: 3532kb

input:

PKKKNKNKPPPPPPPKNKPKKKPPNNPKPNNNKKNPNPKKPPPPPPKPNNKKPPPNNNKPKPKKPPKKPNNPNNPPPPKNPPPKNPPKKKKNNKPNKKKKNPNPPNKKNNNKPKPNKKNNNNNKKPKNKNNKKNKNPKNNPNPKPKNPNNNKKNKNPKKPNPKKNKKPPPKNKNKNNNNNKKKKNPNPKNPKKNNPNPKNNPNNNNPPKPNPPKPKPNNPPNNNKNNPNNPPPPKKPNKPNKPPKKKNPKKKNKPNKPKNNPKPPKKNPPPNNKPNKPNPNKPKKNKPNKPPKKNNNPPN...

output:

0

result:

ok 1 number(s): "0"

Test #64:

score: 0
Accepted
time: 10ms
memory: 4140kb

input:

NNPNKNNPKNKKNPPPPPKPNKKKNNKNKKPKKPNNNKNKPNPNKNPPPPKPKNPNKKKKKPKPKNKNNKKNPNNPKPPKNPPPNKNPPPNKPPPKNNPPKPKPPKKPKNNNPPKNPKPPNPNPNKKNNKPKKKNKNNPNKKNPPKPNNKKNNKNNNNNPPPNKNPPNKKPPKKPKPKPKKPPKPPNKPKPPNPNNPPPPNNPKPNKNKKKNNNKNPNPNKKPKPKNPPKPPNKKKNPKKKNNNNPPPNPNNKPPKNKPKPNPNNNNPPKKPNNKKKNPNNNPPKNKNPNPKKPKPPKNK...

output:

0

result:

ok 1 number(s): "0"

Test #65:

score: 0
Accepted
time: 3ms
memory: 4120kb

input:

KPKPKNPKPNPKPNNPKNPKPPNPNNPNNNKNKKNKPKNNKNNPNPPNPPPKKPNPNNPPPKNKPKNPNKKPKNKNPNKNKKNPKPPNNPPPNKNPPPKKPNKKPNPNNKNKPNKPKKNNKNKNPPKPKPNKNKKPPPPPPKKKPNPKKNNNNNPPPPKPNKPNPKKNNKPNNNPPNNPKNNNKNKKNNNNPKKNKPPKNKNNKKPKPPPNPKKPPPKPKKPNPPKKKNPKPNNNPPKKPPNNNKPKNNKNPPNKNPKNKKKKPPPPNNPPNKPNNNPKNPNPNPNPPKKPPKPNKPKPN...

output:

0

result:

ok 1 number(s): "0"

Test #66:

score: 0
Accepted
time: 10ms
memory: 4212kb

input:

PKNPNNPNNKPNNPPKKKPPKKKNPKPPNPNKKNNNPPKPKNNKNPNKNKNNKNKPPNPKNNPPKNNKNPKKPPPKNNNNKPNNKKPNPKPKNKPKPPNPPNPPNKNPNNNPPPPPKPNPNPPPNNKKNPPKPPNKKPNKPKKNNPNKNNKKNNPPKKPPKNNNNPNPKKNNKPNKPNPNKPKNKNPKPPPPPPPKNPPPKPPKKPPPNPNNPPPKPNKPPKKPNNNNPKKKKKNNPPKKPKNPKNKPKNPNNKNNKPPNNPKKPPKKNNPKPNPKPKKPNNKKPKPPNKPNKPPPPKNN...

output:

0

result:

ok 1 number(s): "0"

Test #67:

score: 0
Accepted
time: 10ms
memory: 4276kb

input:

NNPKPKKPPPPPNKPKKPKPKKNKPNKKNPNPPKPNNNPKKNPNKKPNKNNPPPKPPKNNNKPNPKPNPNPNNPNKNNPNNPNPPNKPKNKKPKNKPNNPNKKKNKNNPKKKNNKPKPKPNKKPPKKKKPPPNKPNNKPKKKKNPNPPPPNNKPNPKKKNKKPKKPNNPNKPPKKNPPKNKNPKNNPNPNKKNKKPKPNNPNPNPNNKKPKKKPKNKPNNPNNKPPNNNPNKKNPPNKPPPKNPKNKNKNKKKKNPNKKPPPKNNPNPKPPNPPKNKNPKNPNPPKPNNNKKNNNKNNPP...

output:

1

result:

ok 1 number(s): "1"

Test #68:

score: 0
Accepted
time: 10ms
memory: 4120kb

input:

PPKKKPNPKKPNNNNKPPNNKPPPPNNPNNPNNPPPPPNNNKKPNKNKKPNPKNPPNKNNKNKNKKNNPPNNNKPNKKNPKKKPNPKNNKPPNNPKPNKKKPKNPPKNNKPPNPPNPPNKKKPPKPNPPKNPPKKPPKKPKPKPNNPNKPKKKNNPKPPPKPKPPNPNNPNKPNNPPKPKPKPKNKNNPKKNKKNKKPNNPNPNKKPPNPKNPKPKNPPKPKKKKNNKKNNPPPPNPPPNKKPPKPPNPNPPPPPNNNPNPNKNNPPNKNNNNPKPKKPKNPPKNNPPKKKNPNNKPKNK...

output:

1

result:

ok 1 number(s): "1"

Test #69:

score: 0
Accepted
time: 3ms
memory: 3744kb

input:

PKNPPPNKNPPKPKNKKPNKPKKNPPPPPKPNPNNPKNNPKKNNKPKKPKKKPNNNNNKPNKPPPNNNNKNNNNNPKNPNKKPKPPPPPKNNNKKNKKPNPNNPPPKNNPKKNKKPNNNKPPKKKNNKKKNKKNNNNPPNKKNKPKKNPKKNPPKNNPKKNKNPPKNNPPKNNNNPPNNPNNPPNKKPNKKNKPPNKNKPNNKPPKPKNKKPKNPPNPPPPPKKNNNKNPPPNNPKNKPKPNNKNKNNNKPKNNPKPKNNNPPNNPPKNNKNKPPNPNNNPNNNNNNKNKPNNNKPKKKK...

output:

1

result:

ok 1 number(s): "1"

Test #70:

score: 0
Accepted
time: 4ms
memory: 3736kb

input:

KPNNNKNPPNKKNNNNNKNKPNNPKPKKNNKPPPKPPKKNKPPPPNPPKKPNKNKPPKPNKNKNNPNPKPNNNPPNNPPPPNKKPNPKNKKPNNNNPKPKPKNKPPNNNPNKNKNKNNNNNNPNKNNPKKPPPKNPNNPNNNKKKKPNPKPPNPNPNKNPNPKKKNNPPPPPPNNNNNKNKPNPKPNKKKNPNKPPNKPNNNPKPPKPKNKPNNNKPPPKPNPNKKPNPNKNNNNKPKKNKKNKNNPNPNNPNNPNNPNPNKNPKNPKPNKPPKNNKPKNKKNNKKPKKNKKNPNPPPPP...

output:

0

result:

ok 1 number(s): "0"

Test #71:

score: 0
Accepted
time: 1ms
memory: 3724kb

input:

PPKNKPNKKNPKPKPKKKPKNKKKNPNPNKPPKKKNPKKPNNNKPPNPKNPNNKKNNNNNNNPPNPPKPPKKKNKNKNNNPNNKKPNNPKKPNNNKPKNPKNPPPPNPNNPNNNKPNPPKNPKPKNNNNKKKNKPKKKNNPNPPPKPPPKKPKNPNNKNPPPKKNNPPNPPKPPKKPPKPKPKNNPPNNNKNPPNKPKPPNNPPKNKPNPKNKKNNKNKKKPKPKNNNNNNPPPPKPNKKNPNKNKPPPNNNKPPPPKNNKPNNNKNKKKKPKKPPKPKNNPPKNPPKPKNPPKKNNNKN...

output:

1

result:

ok 1 number(s): "1"

Test #72:

score: 0
Accepted
time: 0ms
memory: 3948kb

input:

KKPPNNPPNNPNPPNKPPPNKPKKPPPPNKNPPPNNKKPNKKKPKKKPNNNNNKKKPKKKKPNPKPKPKPPNKKNKKPKPNNPNPPNKNPNKPKPKNPPNPPPPPKNPNKKNNNPKKPPNNKKNPKPKNNPKNPNKKNNNKPNKNPPPKNPPKPPNNPPPKPKKPKPNKKKNKPPKKKKPPNPNPKPNNKNNNPKNPPPKNNKKKPPPNPNPPPNPKPPNPNKPKKKPKNKKKKNPPKNPNKNNNKPNNKPKPNPKKKKPPKNNNKNPNPNNKPNKKPNKPPPPPNNKPKPKKPNNKPKN...

output:

1

result:

ok 1 number(s): "1"

Test #73:

score: 0
Accepted
time: 10ms
memory: 4128kb

input:

PPPKPNPKPNNNPKPNKNNNNNNPPKPPPPPKPPKPNPNPPPKNNPKPPKKPNNNKKPNKKPPPPPPNNPKPPKPNKNPPNNKKNNPKKNPKPPNKKNKNPPNNPPKKPPNKNNNNNPPNNNPKKNPPPNKNPNNNNNNPNKPNKKKNKKPKNPNNKPKPKPPNPNKNKNPNNNNKKNPKPNNKKPPNNPPPKNPKPKPPPNNNPKKKNNKNNKNKPPPKNKPNNNNNNPPPPKKKNNKKPKNNNKKKPNNNNPNKKKKPNKNKKNPKNKNPPNKKNNKKKPPNPKKKKNKKPKPNNPNK...

output:

1

result:

ok 1 number(s): "1"

Test #74:

score: 0
Accepted
time: 10ms
memory: 4176kb

input:

KKPNNNKKKPNNKKPNKPPNKPPPPKNNPNNKKNNPNPNNPPPPKPPNKPPPKKNNNNNNPNPNKKKNKKNKKNPKNKNPPNKPPNKKKNKNKPNNNNKKNKKNNKPPPNPNPNNKNPPNKNNKNNKNKNKPPKKKNPPPNKNNKPKPPPNNPPKKNNKPPPPNPPKNPKPPNPKPKKNPPKNPNPNPKPKNNKPPPKKPNKNKPPPNNPKPKNNPPPNNKKKNPPPPPPPNKNNNNNKKNNPPNKNPPKKPNPNKNNNPNKNPKPNNPPKNPKKNKPPKPPKPPPNNNKKKKNPKNNNN...

output:

0

result:

ok 1 number(s): "0"

Test #75:

score: 0
Accepted
time: 7ms
memory: 4276kb

input:

KPNPNKKNNNKNNNPKKNPNPKKKKPNNKPKKNNNPKKPPPPKNNPPNPPNPPNNNKKKPPPNPNKPNNPNNPPNPNKNKPPNKPPKKKKKPPKKNKKKKNNNKPPNNNNKNKKNNNKNNKNKPPNPKKKKNKKPKKPPPPNNNPPNKKNPNPKPNPNNKNPKPKNNKKNPKKKNKKNPKKPNPPPPKKPNPNPPPNPPPPPKNNNKKPPKKKKPKKNNNKNKNKKNKKNNNKPKNKNPNPNNKKPNKPPNKPKNKKKPKPNNPNKNKKKPNPKKKPNKNPPKKPPNNNNPPPPPNPKPK...

output:

0

result:

ok 1 number(s): "0"

Test #76:

score: 0
Accepted
time: 7ms
memory: 4156kb

input:

PNKPPPPPNPNKKNNPNKPPKKPPKKKNPNKPPKPPPPNPNPNKNPPNPNNKKNKPKPNKNPNKPNKNNKPPPNKNPKPKKKKNPPPKKNKPNKPPNKNNKPKKPKPNNPPPNPKPPNKPPPPNNKPNKKNKNKPKPPKPPNPNNKNPKPKPPNKKPNKKPNPPNNPNNPPKPKKKNKKNPNNPNKNNNPPNPPKPPPKKNNPNKPKKNPKPNKNPNKKPPPKKNPPNNNKKKNNNPKKNKPPPKNPKNNPKPNNPNKKPNPPNNKKNPPPPNPNPNKPPPPKKNPNPKNNNNNNKPKKN...

output:

0

result:

ok 1 number(s): "0"

Test #77:

score: 0
Accepted
time: 10ms
memory: 4168kb

input:

PKNKPKKKPNKPKNPPNKNKKPPPNPNNPKPPNPKNKPKKKPNPNNKPNKNKPKPKPNNPNNPNPKNKPNKKNKPKPPPKPKKNKKPKNPPKKNNNKNPNPPPPPPPPKNNNPPNNPPNKPPPNKPPKKPNNNKPNKNKPKNNNPPPNKNKPNPKPNKKPNKPPNNPKKKNKNNPPKPKKNPNKPNKKPNPNPKNKKNNPNKNNNNPKNNPNKKKPNPPPNKPPKPKPKKKNKKNPKNKKKPPPPNNKKKPPNPPPNPNNKNPNKPPNKPPPNNNKPPKPNNPPKNPPNKPKPKNKNKKK...

output:

0

result:

ok 1 number(s): "0"

Test #78:

score: 0
Accepted
time: 9ms
memory: 4272kb

input:

KKKNNNKPNNPKKNPPPKPPNKKPPPKKPPNKNKNPPKPPKNKKPKPKNKKKKNPPPNKKPNNNNNPKKPNKPNPNKKPKKPNNNNPKKKNPPKKKNNKPNNPKKPPPKKPPPKPNKKPPPKNKKKNKPPKPNNNNKNNKPKPPKPKPKKPPNKPKKNNPKKKNNKNNKKKNPPPNPNNNPNPNNPKKNPKKNNKKNPKNKKPPNKNNNKKKKNPKKKPNKNKNNNPNKNNKNNPKKPNPKNPNKKPKNPNNNKPKKPNNKPKNPNNKPPPNNPKNKPNPPPNNPPPNKKKKKNPKKKKN...

output:

0

result:

ok 1 number(s): "0"

Test #79:

score: 0
Accepted
time: 3ms
memory: 3964kb

input:

PNPKPKPKNNKPKKNKPNNPKPNNKNNNKKKKKNKPKPPNPKPNKKKPKPKNPNPNKPKKNPKKNNNNKPNPPNPNNNKKNKNKKNKKPNPPKNNKKNKPPPKNKNKKPNPKKNKKPNPKNNNPKPKKNPNNKPPNKNPPPNPKPPNKNNNKNNPPNNKKPNPKNKNPNNNNNKPNNPKNNNNNPPKNPKKNPNPNPKNNPPKPPPKKKPKPPNPPKPKKKPNNPKNKKKKPPNPPNNKNKNPNPPPKNPNPKNPPKPNNNPNKNPPPNKPKKKKKPKNKNNPKKKKPKPKNPNNPNNKN...

output:

1

result:

ok 1 number(s): "1"

Test #80:

score: 0
Accepted
time: 10ms
memory: 4200kb

input:

NPPNKPKPPKPNKNPPNKNPNKPPPNPNPPNNPKKPPPPKNKNKKKPNNNKKKKPNNKKKNPNNNNPNNKNKPKNPKPKKPKNKNKKPNPNPKPKNKNKKNNKKKPPKPKPNPNNNPNPPNKKNNKKNPKKKNNNKNKKNKNNNKPPPKKPKKNNNPPPNKKKNKKKPKPNKKNNNNPKNNPNNKNNNNNPKNNKPKKPPPNPNPPPNNNKPPKNKNKPPKKNPKKKPPKNPKPPNPKNPKKKNPPNPKPNPPNKNPNPKKNNPKKNKNPPPNNNPPKPPNNPKNKNNKPPPNPKKPKKK...

output:

1

result:

ok 1 number(s): "1"

Test #81:

score: 0
Accepted
time: 0ms
memory: 3728kb

input:

NKKKPKKNKNPKPKKPKKPPKPPKNPPNKKPPNNKPPNPNPNKPNKNNKKPKKNPKNNNKPNNNNKPKKNPPKPKKKNPKNPPPPNKKKPKPKKNPKPKKPPNNKKPNNNKKNNKPPKPNPPNNNKKPNPNNPNKKKKNNPNKNNKNKPNNKPNNKNPKNPNKNKKNKNNPPPPNKPKKPPNKKPPPNPNKNKPPPPNPPKNKNKKKKPKNKPNPNPNNKKPKPPKNPPNNKNNNKPPPPKKNKPKKPKKNNPPKNPNNNNPNKPKKPKNNKNNPPNPKPPNKKNNPPNNNKNNNKPPPP...

output:

0

result:

ok 1 number(s): "0"

Test #82:

score: 0
Accepted
time: 10ms
memory: 4124kb

input:

PKKNPPNNPPKNNKKPNKPNPKNKPNPPNPPNPKKNPKPKPKKPNKPPPNNNKNPNKNNPPNNNKPKNNKNNPPNPNNNPPKKNKKPPNNNKNPKNKPKKKKKKKNPNPNNNPPNPKPKNPKKPNPPKNNNPNNPPPPNKNNKKKNPPKNKNPNNNPKKKNKPPKNKKNKPNPNKPPKKKNKKNKNNKPKPKKPNNNPKKKPPNKPNNKNPPPNNKKKNNNNKKNKPPNKPPPKNKNPKPKPNPNKPNPKPKPNKPKPNNKKPNKKKNNPKPNPKKKNNKNKNNKNKKKNPNPKNNKKNN...

output:

0

result:

ok 1 number(s): "0"

Test #83:

score: 0
Accepted
time: 4ms
memory: 3744kb

input:

PNPNKKKPNKNNPNPPPKNNPPPNKKKKKNPPPKKPNNNPKNKKKPKKKNPKKNKNPPPPKNPPNPPPNNKNKKPNKNNNPPKPNPKPNPNPPNNKKKKPPPPKNPPKKKKNNPNNKNNNNKKKNNKKNKKPKNNNNPPPKPPNNNPNKKPNPPKNPPNPNKPPPPNNKPPNPPPNKKPPPNKKPNPPNPPPKPNPPNNNNKPNKKPNNKKNPKNKKPPKNPNPPPKNKPPNNKNNNKKKNPKNPNKPKPKPNKKNNKNKPPKNKPPPKKPKKKKNPKNNKPNKPPPPPKKPNPNPPPPP...

output:

0

result:

ok 1 number(s): "0"

Test #84:

score: 0
Accepted
time: 1ms
memory: 3916kb

input:

PNPPPKKPNKPKNPPPNKNPNPPKKKKNNPKKPKNPKPPPNNKPPKPNPNPKKKKNNNNPPKPNPPNKPNPKNNNPNPNKPKKKPPPPNNPPNKPNNKKKPNNNKKKKPNKPNNKNKKNPPPKKNPKNPKKPNPPKKKPKPKKPPKKNPKPKPPPPPKPKKNNNPPNKPNKNKKNPPPNKNKKPPPNPPKKPNKKKPNNKKPKKNPNNNKNNKNNPPKNNPPNPPNNPNKNPKKNKNPKNPKKKPKKNPKPKKKPKPNPNKKPNPNKNKPNPPNKKPPKNKKNKNKKPKNNPKNNNKNKN...

output:

1

result:

ok 1 number(s): "1"

Test #85:

score: 0
Accepted
time: 0ms
memory: 3660kb

input:

KPNNKNNKPKKKPNPPKKNNNKNPPNPNKKKPNKNNNKNNPKKKPNKKNKPNPNKNNNNPKPNKPKKKNNKNKPNKKKNNNNPKKPNPPPKNKPKKPPKPKNNNNNPKNKPNNKNNPKNPKPKKNKKKPPPPNPPPKPKKNPKKPKKKNNNPNNKPPKNPKPKNNNNNKPPKKNNKPPKNKPKPNNKPKKKNNNNNKKPKPPNNPPPNPNNKPKKPKNNNKPPPKPPKKNKKPPNPPKNKNPKNNKPPKNNKKPPNPNPPKKNPPNPPPPPPPKNPPNNNNPKKNPNPKPPPPKNNKPKN...

output:

1

result:

ok 1 number(s): "1"

Test #86:

score: 0
Accepted
time: 3ms
memory: 4044kb

input:

PPNKPKKNPKKPNNNNKPNPKNKPKPNKNPPKKPNNPPPPPNPPKNKPPPPPPKKPKNKKPKPPPKKNPKPKNKPPNKPNNPPPPPKNPNPKNNKKKPNNKNPPPPNNPPNKPKNPPNKNPPPPPNKKPNPKKKNNKPPNKNPKKPKPPNPNPNNPPKPKNPNNNNNNPPKPNNKPPPNNKKKNKPNPKKNKNKNKNPNKNPPPPNNKKNNNPPNKKKNKNPNPKKKKPNPNNPNPNKPKNNPKNKKNNNKNNPKPPNKKKKPKKPKNKKNPKNKKPPPPPKPKNKKPKNNNKNPNKKNK...

output:

0

result:

ok 1 number(s): "0"