Ah, the SQLite approach!
It is also the bash approach, isn’t it?!
You can calculate n and n?

28

That’s easy