P10966 K-Anonymous Sequence
Description

Input Format

Output Format
For each test, output one line containing a single integer-the minimal cost