program main
    use,intrinsic :: iso_fortran_env
    implicit none
    integer(int32):: a,b

    read*, a,b
    if (mod(a,3)==0 .or. mod(b,3)==0 .or. mod(a+b,3)==0) then
        print'(a)', 'Possible'
    else
        print'(a)', 'Impossible'
    end if
    
end program main