import java.io.IOException; import java.io.InputStream; import java.util.ArrayList; import java.util.Arrays; import java.util.HashSet; import java.util.NoSuchElementException; import java.util.Set; public class Main { public static void main(String[] args) { new Main().run(); } void run() { FastScanner sc=new FastScanner(); ArrayList x_circle=new ArrayList<>(); ArrayList y_circle=new ArrayList<>(); for (int i=-20;i<=20;++i) { for (int j=-20;j<=20;++j) { if (i*i+j*j<20*20) { x_circle.add(i); y_circle.add(j); } } } int N=sc.nextInt(); int MAX=(20000+13)/14; boolean[][] exist=new boolean[MAX][MAX]; Set set=new HashSet<>(); int[] X=new int[N]; int[] Y=new int[N]; for (int i=0;i=MAX||Y[i]/14+dy>=MAX) continue; empty &= !exist[X[i]/14+dx][Y[i]/14+dy]; if (!empty) break out2; } } if (!empty) { for (int j=0;j Integer.MAX_VALUE) throw new NumberFormatException(); return (int) nl; } public double nextDouble() { return Double.parseDouble(next());} }