let _ =
    let [a; b] = List.map int_of_string (Str.split (Str.regexp " ") (read_line ())) in
    if a mod 3 = 0 || b mod 3 = 0 || (a+b) mod 3 = 0 then print_string "Possible"
    else print_string "Impossible"