using System;
class HelloWorld {
  static void Main() {
    //1. uzdevums
    
Console.WriteLine("Ievadi veselu skaitli: ");
int sk = Convert.ToInt32(Console.ReadLine());
    
    if(sk>0) Console.WriteLine("Skaitlis ir pozitīvs");
    else if(sk<0)Console.WriteLine("Skaitlis ir negatīvs");
    else Console.WriteLine("Skaitlis ir nulle");
    //2. uzdevums
    
    Console.WriteLine("Ievadi skaitli no 1 - 7");
    int num = Convert.ToInt32(Console.ReadLine());
    
switch(num){
    case 1:Console.WriteLine("Pirmdiena"); break;
    case 2:Console.WriteLine("Otrdiena"); break;
    case 3:Console.WriteLine("Trešdiena"); break;
    case 4:Console.WriteLine("Ceturtdiena"); break;
    case 5:Console.WriteLine("Piektdiena"); break;
    case 6:Console.WriteLine("Sestdiena"); break;
    case 7:Console.WriteLine("Svētdiena"); break;
    default: Console.WriteLine("Nepareizi ievadīts skaitlis."); break;
}
    //3. uzdevums
Console.WriteLine("Ievadi skaitli no 0 - 100");
int sk1 = Convert.ToInt32(Console.ReadLine();
string atz="";
    
    if(sk1<0 || sk1>100) atz = "nav";
    else if(sk1>49 && sk1<-1) atz = "F";
    else if(sk1>49 && sk1<60) atz = "E";
    else if(sk1>59 && sk1<70) atz = "D";
    else if(sk1>69 && sk1<80) atz = "C";
    else if(sk1>79 && sk1<90) atz = "B";
    else if(sk1>89 && sk1<101) atz = "A";
    
    Console.WriteLine("Atzīme: "+atz);
    //4. uzdevums
    
    Console.Write("Ievadi skaitli a: ");
    int A = Convert.ToInt32(Console.ReadLine());
    Console.Write("ievadi skaitli b: ");
    int B = Convert.ToInt32(Console.ReadLine());
    //ja jebkurš skaitlis ir 0, izlaiž kodu.
    if(A==0 || B==0){
        Console.WriteLine("Nepareizi ievadīti skaitļi");
    }else{
    Console.Write("Ievadi matemātikas darbību (+, -, / vai *): ");
    string darb = Console.ReadLine();
    switch(darb){
    case "+": Console.WriteLine(A+"+"+B+" = "+(A+B)); break;
    case "-": Console.WriteLine(A+"-"+B+" = "+(A-B)); break;
    case "/": Console.WriteLine(A+"/"+B+" = "+(double)(A/B)); break;
    case "*": Console.WriteLine(A+"*"+B+" = "+(A*B)); break;
    default: Console.WriteLine("Kaut kas nogāja greizi >:("); break;
    }
    }
    //5. uzdevums
    Console.Write("Ievadi gadu: ");
    int gads = Convert.ToInt32(Console.ReadLine());
    if(gads%4==0 && gads%100!=0 || sk%400==0){
        Console.WriteLine("Ievadītais gads ir garais");
    }else Console.WriteLine("Ievadītais gads nav garais");
    //6. uzdevums
    Console.Write("Ievadi vecumu: ");
int vecums = Convert.ToInt32(Console.ReadLine());
bool irStudents=false;
    double atl=0, cena = 10.00;

    if(vecums<0){
        Console.WriteLine("Vēl nav dzimis...");
    }else{
        if(vecums<6) atl = 0;
        else if(vecums >=6 && vecums <=17) atl = 0.5;
        else if(vecums >=18 && vecums <=25){
        irStudents=true;
        atl = 0.75;
        }
        else if(vecums >=65) atl = 0.8;
        else atl = 1;
        Console.WriteLine("Biļetes cena bez atlaides: $"+cena+"\nBiļetes cena ar atlaidi: $"+(atl*cena)+"\nIr students: "+irStudents);
    }
  }
}