Slot Machines
题号:NC220124
时间限制:C/C++/Rust/Pascal 2秒,其他语言4秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
64bit IO Format: %lld

题目描述


输入描述:

输出描述:

Your program is to write to standard output. Print two integers k and p in one line.  
The following shows sample input and output for two test cases. 
示例1

输入

复制
6
612534 3157 423 3157 423 3157

输出

复制
1 2
示例2

输入

复制
9
1 2 1 3 1 2 1 3 1

输出

复制
0 4