using System; using System.IO; using System.Linq; using System.Collections.Generic; using System.Text; public class Program { public void Proc() { long[] inpt = Reader.ReadLine().Split(' ').Select(a => long.Parse(a)).ToArray(); if(IsAnsan(inpt)) { long ans = inpt[0] * inpt[1] / 10; Console.WriteLine(ans); } else { long ans = inpt[0] * inpt[1]; if(Math.Abs(ans)> 99999999) { Console.WriteLine("E"); } else { Console.WriteLine(ans); } } } private bool IsAnsan(long[] inpt) { foreach(int item in inpt) { if(item == 0) { return false; } string nokori; if(item < 0) { nokori = item.ToString().Substring(2); } else { nokori = item.ToString().Substring(1); } if(nokori.Length < 1) { return false; } if(nokori.Any(a=>a!='0')) { return false; } } return true; } private int[] GetIntArray() { return Reader.ReadLine().Trim().Split(' ').Select(a => int.Parse(a)).ToArray(); } 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 = @" 30000000 -70000000 "; } public static void Main(string[] args) { #if DEBUG Reader.IsDebug = true; #endif Program prg = new Program(); prg.Proc(); } }