Problem hidden
|This problem was hidden by Editorial Board member probably because it has incorrect language|version or invalid test data, or description of the problem is not clear.|

COEDU057 - NA

 

PPPPP
PPPPG
PPPGP
PPPGG
PPGPP
PPGPG
PPGGP
PPGGG
PGPPP
PGPPG
PGPGP
PGPGG
PGGPP
PGGPG
PGGGP
PGGGG
GPPPP
GPPPG
GPPGP
GPPGG
GPGPP
GPGPG
GPGGP
GPGGG
GGPPP
GGPPG
GGPGP
GGPGG
GGGPP
GGGPG
GGGGP
GGGGG

 

PPPPP

PPPPG

PPPGP

PPPGG

PPGPP

PPGPG

PPGGP

PPGGG

PGPPP

PGPPG

PGPGP

PGPGG

PGGPP

PGGPG

PGGGP

PGGGG

GPPPP

GPPPG

GPPGP

GPPGG

GPGPP

GPGPG

GPGGP

GPGGG

GGPPP

GGPPG

GGPGP

GGPGG

GGGPP

GGGPG

GGGGP

GGGGG

Example

Input:

Output:


Được gửi lên bởi:Phòng đào tạo Coedu
Ngày:2023-03-28
Thời gian chạy:3s
Giới hạn mã nguồn:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Ngôn ngữ cho phép:C C++ 4.3.2 CPP JAVA

© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.