Combinatorics

24 - SQL-query.
0.068379 - time.