function main( input ){

  input = input.split( /\s/ )

  var A = Number( input[0] ),
      B = Number( input[1] )

  if( ( A + B ) % 3 === 0 || A % 3 === 0 || B % 3 === 0 )
    console.log( 'Possible' )
  else
    console.log( 'Impossible' )

}

main(
  require( 'fs' )
    .readFileSync( '/dev/stdin', 'utf8' )
)
