using System; class c1806 { static int Main() { try { checked { float zero=0.0f; float x=1.0f; float z=x/zero; if (Single.IsInfinity(z)) throw (new System.OverflowException()); System.Console.WriteLine(zero); System.Console.WriteLine(x); System.Console.WriteLine(z); x=z*zero; System.Console.WriteLine(zero); System.Console.WriteLine(x); System.Console.WriteLine(z); } } catch(Exception e) { Console.WriteLine("An error occurred: '{0}'", e); } return 0; } }