import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.util.ArrayDeque; import java.util.Arrays; import java.util.NoSuchElementException; class Edge{ int dst; long cost; public Edge(int dst,long cost) { this.dst=dst; this.cost=cost; } } public class Main { public static void main(String[] args) throws FileNotFoundException { long t = System.currentTimeMillis(); new Main().run(); System.err.println(System.currentTimeMillis() - t); } void run() { FastScanner sc = new FastScanner(); int N=sc.nextInt(); // ...,N-3,3,N-1,1,N,2,N-2,4,... long ans=0; ArrayDeque dq=new ArrayDeque<>(); dq.add(1); int s=2,t=N; while(s<=t) { if(s<=t)dq.addLast(t--); if(s<=t)dq.addFirst(t--); if(s<=t)dq.addLast(s++); if(s<=t)dq.addFirst(s++); } Integer[] v=dq.toArray(new Integer[0]); for(int i=0;i