// Praktiskais darbs 7.3
// Ralfs Emīls Saldnieks
// 110

using System;
class HelloWorld {
    static double AprekinatPlaknesAttalumu(double x1, double y1, double x2, double y2)
    {
        return Math.Sqrt(Math.Pow(x2 - x1, 2) + Math.Pow(y2 - y1, 2));
    }
    static double KovertetRadianos(double gradi)
    {
        return gradi * (Math.PI / 180);
    }
    static void Main() {
        Console.WriteLine("Ieavadiet skaitļus (x1, y1, x2, y2)");
        Console.WriteLine(AprekinatPlaknesAttalumu(Convert.ToDouble(Console.ReadLine()), Convert.ToDouble(Console.ReadLine()), Convert.ToDouble(Console.ReadLine()), Convert.ToDouble(Console.ReadLine())));

        Console.Write("Ievadiet grādus: ");
        Console.WriteLine(KovertetRadianos(Convert.ToDouble(Console.ReadLine())));
    }
}