/*
    Veidotaja: Rolands Zviedris
    Grupa: 110
    Praktiskais darbs 6.3
    Izmantotais compiler: https://www.onlinegdb.com/online_csharp_compiler
*/
using System;
class HelloWorld {
  static void Main() {
    switch(Convert.ToInt32(Console.ReadLine()))
    {
        case 1:
            Console.WriteLine("Ievadi veselu skaitli!");
            int x = Convert.ToInt32(Console.ReadLine());
            if(x<0)
            {
                Console.WriteLine("Skaitlis mazaks par 0");
            }
            else if(x==0)
            {
                Console.WriteLine("Skaitlis ir 0");
            }
            else
            {
                Console.WriteLine("skaitlis lielaks par 0");
            }
        break;
        case 2:
            Console.WriteLine("Ievadi nedelas dienas numuru!");
            switch(Convert.ToInt32(Console.ReadLine()))
            {
                case 1:
                    Console.WriteLine("Pirmdiena");
                break;
                case 2:
                    Console.WriteLine("otrdiena");
                break;
                case 3:
                    Console.WriteLine("tresdiena");
                break;
                case 4:
                    Console.WriteLine("ceturtdiena");
                break;
                case 5:
                    Console.WriteLine("piektdiena");
                break;
                case 6:
                    Console.WriteLine("sestdiena");
                break;
                case 7:
                    Console.WriteLine("svetdiena");
                break;
                default:
                    Console.WriteLine("nav derigs numurs");
                break;
            }
        break;
        case 3:
            Console.WriteLine("Ievadi iegutos punktus");
            int a = Convert.ToInt32(Console.ReadLine());
            
            if(a>100 || a<0)
            {
                Console.WriteLine("Skaitlis ir arpus diapazona!");
            }
            else if(90<=a)
            {
                Console.WriteLine("Jusu atzime ir A");
            }
            else if(80<=a)
            {
                Console.WriteLine("Jusu atzime ir B");
            }
            else if(70<=a)
            {
                Console.WriteLine("Jusu atzime ir C");
            }
            else if(60<=a)
            {
                Console.WriteLine("Jusu atzime ir D");
            }
            else if(50<=a)
            {
                Console.WriteLine("Jusu atzime ir E");
            }
            else if(0<=a)
            {
                Console.WriteLine("Jusu atzime ir F");
            }
        break;
        case 4:
            int A = Convert.ToInt32(Console.ReadLine());
            string r = Console.ReadLine();
            int B = Convert.ToInt32(Console.ReadLine());
            switch(r)
            {
                case "+":
                    int sum = A+B;
                    Console.WriteLine("Rezultats ir " + sum);
                break;
                case "/":
                    if(B==0)
                    {
                        Console.WriteLine("dalit ar nulli nedrikst");
                    }
                    else
                    {
                        int dal = A/B;
                        Console.WriteLine("Rezultats ir " + dal);
                    }
                break;
                case "-":
                    int starp = A-B;
                    Console.WriteLine("Rezultats ir " + starp);
                break;
                case "*":
                    int reiz = A*B;
                    Console.WriteLine("Rezultats ir " + reiz);
                break;
            }
        break;
        case 5:
            Console.WriteLine("Ievadiet gadu");
            int g = Convert.ToInt32(Console.ReadLine());
            if(g%100 == 0 && g%4 == 0 || g%400 == 0)
            {
                Console.WriteLine("gads ir garais gads");
            }
            else
            {
                Console.WriteLine("gads nav garais gads");
            }
        break;
        case 6:
            int cena = 10;
            Console.WriteLine("ievadi savu vecumu");
            int age = Convert.ToInt32(Console.ReadLine());
            bool Student;
            int price;
            Console.WriteLine("Vai esi students? (y/n)");
            char answer = Console.ReadKey().KeyChar;
            if(answer == 'y')
            {
                Student = true;
            }
            else
            {
                Student = false;
            }
            Console.WriteLine("");
            if(age>=0 && age<=6)
            {
                Console.WriteLine("Brauciens par brivu");
            }
            else if(age<=17)
            {
                price = cena/2;
                Console.WriteLine("Bilete maksa " + price +" eiro un atlaide ir 50%");
            }
            else if(age<=25 && Student)
            {
                price = cena/4*3;
                Console.WriteLine("Bilete maksa " + price +" eiro un atlaide ir 25%");
            }
            else if(age>=65)
            {
                price = cena/5*4;
                Console.WriteLine("Bilete maksa " + price +" eiro un atlaide ir 20%");
            }
            else
            {
                Console.WriteLine("tev nav atlaides un jamaksa " + cena + " eiro");
            }
        break;
    }
  }
}