using System;
public class Program
{
public static void Main()
int x = Convert.ToInt32(Console.ReadLine());
if ((31 - x) >= 0)
Console.WriteLine((31 - x).ToString());
else
Console.WriteLine("Такого дня еще не придумали");
}