import java.util.Scanner; public class HelloWorld { public static void main (String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); sc.close(); int count =0; for (int x=0;x<=n;x++) { for (int y=0;y<=n;y++) { for(int z=0;z<=n;z++) { if (x+y+z == n) { count ++; } } } } System.out.println(count); } }