import java.util.*; public class Main { public static void main(String[] args) { int offset=0; Scanner sc=new Scanner(System.in); int len=sc.nextInt(); int[] arr=new int[len]; int[] result=new int[len]; for(int i=0;i