partition three digit numbers