import java.util.Scanner; public class Aba{ public static void main(String[] arg){ Scanner sc = new Scanner(System.in); long n,res = 0; n = sc.nextLong(); res = (n-1)*(n-1)/4; System.out.println(res); } }