using System;
public class Program
{
static int inputMonth() {
int month = int.Parse(Console.ReadLine());
return month;
}
static string kiemTraQuy(int month) {
switch(month) {
case 1:
case 2:
case 3:
return("Thuộc quý 1");
case 4:
case 5:
case 6:
return("Thuộc quý 2");
case 7:
case 8:
case 9:
return("Thuộc quý 3");
default:
return("Thuộc quý 4");
public static void Main()
int month = inputMonth();
string result = kiemTraQuy(month);
Console.Write(result);