public static void Main()
Console.Write("Enter the day: ");
x = int.Parse(Console.ReadLine());
Console.Write("Enter the month: ");
y = int.Parse(Console.ReadLine());
Console.Write("Enter the year: ");
z = int.Parse(Console.ReadLine());
if (y == 1 || y == 3 || y == 5 || y == 7 || y == 8 || y == 10 || y == 12)
Console.WriteLine("tomorrow: " + (x +1 + "," +y + "," + z));
Console.WriteLine("yesterday: " + (x -1 + "," + y + "," + z));
else if (x == 1 && y == 1)
Console.WriteLine("tomorrow: " + (x +1 + "," +y + "," + z));
Console.WriteLine("yesterday: " + (x +30 + "," + (y+11) + "," + (z-1)));
Console.WriteLine("tomorrow: " + (x +1 + "," + y + "," + z));
Console.WriteLine("yesterday: " + (x +30 + "," + (y -1) + "," + z));
Console.WriteLine("tomorrow: " + (x -20 + "," + (y+1) + "," + z));
Console.WriteLine("yesterday: " + (x -1 + "," + y + "," + z));
else if (y == 12 && x == 31)
Console.WriteLine("tomorrow: " + (x -30 + "," + y + "," + (z+1)));
Console.WriteLine("yesterday: " + (x -1 + "," + y + "," + z));
else if (y == 4 || y == 6 || y == 9 || y== 11)
Console.WriteLine("tomorrow: " + (x +1 + "," + y + "," + z));
Console.WriteLine("yesterday: " + (x -1 + "," + y + "," + z));
Console.WriteLine("tomorrow: " + (x +1 + "," +y + "," + z));
Console.WriteLine("yesterday: " + (x +29 + "," + (y -1) + "," + z));
Console.WriteLine("tomorrow: " + (x -29 + "," + (y+1) + "," + z));
Console.WriteLine("yesterday: " + (x -1 + "," + y + "," +z));
Console.WriteLine("tomorrow: " + (x +1 + "," +y + "," +z));
Console.WriteLine("yesterday: " + (x -1 + "," + y + "," + z));
Console.WriteLine("tomorrow: " + (x +1 + "," + y + "," + z));
Console.WriteLine("yesterday: " + (x +30 + "," + (y -1) + "," + z));
Console.WriteLine("tomorrow: " + (x -28 + "," + (y+1) + "," + z));
Console.WriteLine("yesterday: " + (x -1 + "," + y + "," + z));
Console.WriteLine("tomorrow: " + (x +1 + "," + y+ "," + z));
Console.WriteLine("yesterday: " + (x -1 + "," + y + "," + z));
Console.WriteLine("tomorrow: " + (x +1 + "," + y + "," + z));
Console.WriteLine("yesterday: " + (x +30 + "," + (y -1) + "," + z));
Console.WriteLine("tomorrow: " + (x -27 + "," + (y+1) + "," + z));
Console.WriteLine("yesterday: " + (x -1 + "," + y + "," +z));
Console.WriteLine("Eror");