let s = read_line() in
let sl = Str.split (Str.regexp " ") s in
let a = (int_of_string (List.nth sl 0)) * (int_of_string (List.nth sl 1)) in
let r = ((int_of_string (List.nth sl 0)) + (int_of_string (List.nth sl 1))) * 2 in
Format.printf "%d %d@\n" a r