import java.util.Scanner; public class No111 { public static void main(String[] args) { Scanner s = new Scanner(System.in); long l = s.nextLong(); s.close(); System.out.println((long)Math.pow(((double)l-1)/2, 2)); } }