import java.io.PrintWriter; import java.util.Scanner; class Main { public static void main(String[] args) { new Main().run(); } class Tree { int n=1; long[] sum; long[] sum_parity; long[] lazy; int erase=-1; public Tree(int n_) { while (n