using System;

public class HelloWorld
{
    public static void Main()
    {
        Uzd1();
        Uzd2();
        Uzd3();
        Uzd4();
        Uzd5();
        Uzd6();
    }
    public static void Uzd1()
    {
        Console.WriteLine("Ievadiet veselu skaitli!");
        int x = Convert.ToInt32(Console.ReadLine());
        if (x>0)
        {
            Console.WriteLine("Ievaditais skaitlis ir pozitivs.");
        } else if (x<0)
        {
            Console.WriteLine("Ievaditais skaitlis ir negativs.");
        } else 
        {
            Console.WriteLine("Ievaditais skaitlis ir nulle.");    
        }
    }
    public static void Uzd2()
    {
        Console.WriteLine("Ievadit nedelas dienas numuru (1 lidz 7)!");
        int x = Convert.ToInt32(Console.ReadLine());

        string y = x switch
        {
            1 => "Pirmdiena",
            2 => "Otrdiena",
            3 => "Tresdiena",
            4 => "Ceturtdiena",
            5 => "Piektdiena",
            6 => "Sestdiena",
            7 => "Svetdiena",
            _ => "Nederigs skaitlis! Nedela ir tikai 7 dienas."
        };

        Console.WriteLine($"{x} atbilst {y}!");
    }
    public static void Uzd3()
    {
        Console.WriteLine("Ievadit studenta ieguto punktu skaitu (0-100)!");
        int x = Convert.ToInt32(Console.ReadLine());
        if (x>=90 && x<=100)
        {
            Console.WriteLine("Jusu atzime ir A.");
        } else if (x>=80 && x<=89)
        {
            Console.WriteLine("Jusu atzime ir B.");
        } else if (x>=70 && x<=79)
        {
            Console.WriteLine("Jusu atzime ir C.");
        } else if (x>=60 && x<=69)
        {
            Console.WriteLine("Jusu atzime ir D.");
        } else if (x>=50 && x<=59)
        {
            Console.WriteLine("Jusu atzime ir E.");
        } else if (x>=0 && x<=49)
        {
            Console.WriteLine("Jusu atzime ir F.");
        } else 
        {
            Console.WriteLine("Ievadita vertiba nav diapazona.");
        }
    }
    public static void Uzd4()
    {
        Console.WriteLine(Ievadi pirmo skaitli!);
        int x = Convert.ToInt32(Console.ReadLine());
        Console.WriteLine(Ievadi otro skaitli!);
        int y = Convert.ToInt32(Console.ReadLine());
    }
    public static void Uzd5()
    {
        Console.WriteLine("Ievadit gadu(piem., 2024).");
        int x = Convert.ToInt32(Console.ReadLine());
        if (x % 4 == 0 && x % 100 != 0 || x % 400 == 0)
        {
            Console.WriteLine("Sis gads ir garais gads.");
        } else
        {
            Console.WriteLine("Sis gads ir isais gads");
        }
    }
    public static void Uzd6()
    {
        double Pc = 10.00;
        double ATL = 0;
        Console.Write("Ievadiet savu vecumu: ");
        int x = Convert.ToInt32(Console.ReadLine());
        Console.Write("Vai tu esi students?(ja/ne): ");
        string y = Console.ReadLine();
        bool irStudents = false;
        if (y == "ja")
        {
            irStudents = true;
        } else if (y == "ne")
        {
            irStudents = false;
        } else 
        {
            Console.WriteLine("Uz jautajumu - vai tu esi students? - nav atbildets ar ja/ne!");
        }
        if (x<6)
        {
            ATL = 10.00;
        } else if (x>=6 && x<=17)
        {
            ATL = Pc * 0.5;
        } else if (x>=18 && x<=25 && irStudents == true)
        {
            ATL = Pc * 0.25;
        } else if (x>=65)
        {
            ATL = Pc * 0.2;
        } else 
        {
            ATL = 0;
        }
        Pc = Pc - ATL;
        Console.WriteLine($"Atlaide: {ATL}");
        Console.WriteLine($"Pamatcena: {Pc}");
        
    }
}