resolve Decode_Ways