using System;

class Program
{
    static void Main()
    {
        const double pamatCena = 10.00;

        Console.Write("Ievadi savu vecumu: ");
        int vecums = Convert.ToInt32(Console.ReadLine());

        Console.Write("Vai esi students? (true/false): ");
        bool irStudents = Convert.ToBoolean(Console.ReadLine());

        double galaCena;
        string atlaide;

        if (vecums < 6)
        {
            galaCena = 0.00;
            atlaide = "Bezmaksas biļete.";
        }
        else if (vecums >= 6 && vecums <= 17)
        {
            galaCena = pamatCena * 0.5; 
            atlaide = "Bērna atlaide (50%).";
        }
        else if (vecums >= 18 && vecums <= 25 && irStudents)
        {
            galaCena = pamatCena * 0.75; 
            atlaide = "Studenta atlaide (25%).";
        }
        else if (vecums >= 65)
        {
            galaCena = pamatCena * 0.8; 
            atlaide = "Pensionāra atlaide (20%).";
        }
        else
        {
            galaCena = pamatCena; 
            atlaide = "Bez atlaides.";
        }

        Console.WriteLine($"\n{atlaide}");
        Console.WriteLine($"Gala cena: ${galaCena:F2}");
    }
}
