Getting a portion of a Long NBT

I have a long in an NBT, what would be the best way of getting the 9 most left digits to a score? (Can mutate the long as long as the score has the value I want, a long can have 19 digits at max)

Continue to help post