Keeping track of all the cows can be a tricky task so Farmer John has installed a system to automate it. He has installed on each cow an electronic ID ......
// luogu-judger-enable-o2
include <cstdio>
//include <iostream>
include <cstring>
include <algorithm>
include <cmath>
define R(a,b,c) for(regist ......