using System; namespace ConsoleApplication8 { class Program { static void Main() { int input = Convert.ToInt32(Console.ReadLine()); float a = input / 100%10; float b = input / 10%10; float c = input / 1% 10; float rezultat; if ( c == 0) { rezultat = a * b; } else if ( c!= 0 && c <= 5) { rezultat = (a * b) / c; } else { rezultat = (a * b) * c; } Console.WriteLine("{0:F2}", rezultat); } } }