using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp85 { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int tori = 0; for(int i = 0; i <= n / 5; i++) { for(int j = 0; j <= n / 2; j++) { for(int I = 0; I <= n / 3; I++) { if (i * 5 + j * 2 + 3 * I == n && j <= i) { tori += 1; } } } } Console.WriteLine(tori); Console.ReadLine(); } } }