import java.util.*; import java.io.*; public class Main { public static void main(String[]args){ Scanner sc = new Scanner(System.in); PrintWriter ou = new PrintWriter(System.out); int n = Integer.parseInt(sc.next()); sc.close(); long yono = 0; for(int i = 0 ; i < n ; i++)for(int j = 0 ; j < n ; j++)for(int k = 0 ; k < n ; k++)if(5 * i + 2 * j + 3 * k == n && i >= j) yono++; if(n == 0)yono++; ou.println(yono); ou.flush(); } }