import java.util.Scanner; public class HelloWorld { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int sum = sc.nextInt(); int t = 5; int g = 2; int pg = 3; int count = 0; for (int number_pg = 0; number_pg <=sum / 3; number_pg ++) { for (int number_t = 0; number_t <= (sum - number_pg * 3) / 5; number_t ++) { for (int number_g = 0; number_g <= (sum - number_pg * 3 - number_t * 5) / 2&& number_g <= number_t; number_g ++) { if (number_t * 5 + number_g * 2 + number_pg * 3 == sum) { count ++; } } } } System.out.println(count); } }