import java.io.IOException; import java.io.InputStream; import java.util.Arrays; import java.util.NoSuchElementException; public class Main{ public static void main(String[] args) { new Main().run(); } class SegTree { int n=1; long[] v; public SegTree(int n) { while (this.nb) return gcd(b,a); if (a==0) return b; if (a%2==0 && b%2==0) return 2*gcd(a/2,b/2); if (a%2==0) return gcd(a/2,b); if (b%2==0) return gcd(a,b/2); return gcd(b%a,a); } void run() { FastScanner sc=new FastScanner(); int N=sc.nextInt(); long[] A=new long[N]; SegTree seg=new SegTree(N+1); for (int i=0;i Integer.MAX_VALUE) throw new NumberFormatException(); return (int) nl; } public double nextDouble() { return Double.parseDouble(next());} }