Package for this problem was not updated by the problem writer or Codeforces administration after we’ve upgraded the judging servers. To adjust the time limit constraint, solution execution time will be multiplied by 2. For example, if your solution works for 400 ms on judging servers, then value 800 ms will be displayed and used to determine the verdict.

Virtual contest is a way to take part in past contest, as close as possible to participation on time. It is supported only ACM-ICPC mode for virtual contests.
If you've seen these problems, a virtual contest is not for you - solve these problems in the archive.
If you just want to solve some problem from a contest, a virtual contest is not for you - solve this problem in the archive.
Never use someone else's code, read the tutorials or communicate with other person during a virtual contest.

No tag edit access

E. Bits of merry old England

time limit per test

2 secondsmemory limit per test

256 megabytesinput

standard inputoutput

standard outputAnother feature of Shakespeare language is that the variables are named after characters of plays by Shakespeare, and all operations on them (value assignment, output etc.) look like a dialog with other characters. New values of variables are defined in a rather lengthy way, so a programmer should try to minimize their usage.

You have to print the given sequence of *n* integers. To do this, you have *m* variables and two types of operations on them:

- variable=integer
- print(variable)

Any of the *m* variables can be used as variable. Variables are denoted by lowercase letters between "a" and "z", inclusive. Any integer number can be used as integer.

Let's say that the penalty for using first type of operations equals to the number of set bits in the number integer. There is no penalty on using second type of operations. Find and output the program which minimizes the penalty for printing the given sequence of numbers.

Input

The first line of input contains integers *n* and *m* (1 ≤ *n* ≤ 250, 1 ≤ *m* ≤ 26). The second line contains the sequence to be printed. Each element of the sequence is an integer between 1 and 10^{9}, inclusive. The sequence has to be printed in the given order (from left to right).

Output

Output the number of lines in the optimal program and the optimal penalty. Next, output the program itself, one command per line. If there are several programs with minimal penalty, output any of them (you have only to minimize the penalty).

Examples

Input

7 2

1 2 2 4 2 1 2

Output

11 4

b=1

print(b)

a=2

print(a)

print(a)

b=4

print(b)

print(a)

b=1

print(b)

print(a)

Input

6 3

1 2 3 1 2 3

Output

9 4

c=1

print(c)

b=2

print(b)

a=3

print(a)

print(c)

print(b)

print(a)

Codeforces (c) Copyright 2010-2018 Mike Mirzayanov

The only programming contests Web 2.0 platform

Server time: Apr/21/2018 10:59:48 (d1).

Desktop version, switch to mobile version.

User lists

Name |
---|