import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.Arrays; import java.util.NoSuchElementException; public class Main { public static void main(String[] args) { new Main().run(); } int pow(int a,int n) { return n!=0?pow(a*a,n/2)*(n%2==1?a:1):1; } int get(int v,int i,int j) { if (i<0||j<0||i>=3||j>=3) return 0; return v/pow(10,i+2*j)%10; } void run() { FastScanner sc=new FastScanner(); int N=sc.nextInt(); long[] A=new long[N]; long ans=0; for (int i=0;i Integer.MAX_VALUE) throw new NumberFormatException(); return (int) nl; } public double nextDouble() { return Double.parseDouble(next());} }