How to find the ProjectId and the DocumentID from URN?

In the help, it is easy to find how to get the URN, but how to do it the other way around?