using System; using System.IO; using System.Linq; using System.Collections.Generic; using System.Text; public class Program { public void Proc() { string inpt = Reader.ReadLine(); if (inpt.Length == 1) { Console.WriteLine(inpt[0] + ".0*10^1"); return; } if (inpt.Length <= 2) { Console.WriteLine(inpt[0] + "." + inpt[1] + "*10^2"); return; } decimal left = decimal.Parse(inpt.Substring(0, 3)) / 10; left = Math.Round(left, MidpointRounding.AwayFromZero) / 10; int sisu = inpt.Length - 1; if (left >= 10) { left = left / 10; sisu++; } Console.WriteLine(left.ToString("0.0") + "*10^" + sisu); } public class Reader { static StringReader sr; public static bool IsDebug = false; public static string ReadLine() { if (IsDebug) { if (sr == null) { sr = new StringReader(InputText.Trim()); } return sr.ReadLine(); } else { return Console.ReadLine(); } } private static string InputText = @" "; } public static void Main(string[] args) { #if DEBUG Reader.IsDebug = true; #endif Program prg = new Program(); prg.Proc(); } }