Example, the server has these ids:
aaaa, aaaa - 1 , aaaa - 2 , bbbb
If the client sign in, the server check client's algorithm
If the client's id is aaaa, server make client's id aaaa - 3
If the client's id is bbbb, server make client's id bbbb -1
How can i do that?