3051 - [wc2013]平面图

Input

Output

Examples

Input

Sample Input

Output

2
3
-1
时间限制 1 秒
内存限制 128 MB
统计
上一题 下一题