use std::io::{Read, stdin}; fn main() { let mut buf = String::new(); stdin().read_to_string(&mut buf).unwrap(); let mut tok = buf.split_whitespace(); let mut get = || tok.next().unwrap(); macro_rules! get { ($t:ty) => (get().parse::<$t>().unwrap()); () => (get!(i64)); } let a = get!(); let b = get!(); if is_yuki(a) && is_yuki(b) { println!("{}", a * (b / 10)); return; } let ans = a * b; if ans.abs() < 1_0000_0000 { println!("{}", ans); } else { println!("E"); } } fn is_yuki(v: i64) -> bool { let mut d = 0; let mut v = v.abs(); while v > 9 { if v % 10 != 0 { return false; } v /= 10; d += 1; } d >= 2 && v > 0 }