SP13707 SHAHBG - SHAHBAG
题目描述
有 $q$ 个人,第 $i$ 个人的位置是 $p_i$,每来一个人,这个人会与周围的人成为一组。
输入格式
There will be a single case. First line will contain an integer Q which denotes number of people. Next line will contain Q (1
输出格式
For each pi print number of groups currently in shahbag. In last line print the string "Justice" with a newline. Do not print any extra spaces.