PHƯỚC HƯNG OJ · THỬ THÁCH THUẬT TOÁN

#SP0000138. Biểu diễn tổng nguyên tố theo thứ tự từ điển (Sum-up the Primes)

HỌC THEO LỘ TRÌNH

Bài tập thuộc lộ trình

1 lộ trình

Biểu diễn tổng nguyên tố theo thứ tự từ điển (Sum-up the Primes)

Sum-up the Primes

Source: UVa — 10419

Version: Phước Hưng OJ Extended; one input file per judge run.

Problem Statement

Express NN as a sum of exactly tt primes below 300300, each odd prime at most twice and prime 22 at most once. Print the lexicographically smallest decimal expression (as a character string), or No Solution.. One (N,t)(N,t) is supplied per PHOJ run; retain the header CASE 1:.

Input

One line with integers N,tN,t.

Output

Print CASE 1: and then the expression without spaces or No Solution..

Subtask

  • Subtask 1 (20 points): 1≤N≤1001\le N\le 100, 1≤t≤141\le t\le14.
  • Subtask 2 (30 points): 1≤N≤5001\le N\le 500, 1≤t≤141\le t\le14.
  • Subtask 3 (50 points): 1≤N≤10001\le N\le 1000, 1≤t≤141\le t\le14.

Example

Input

100 4

Output

CASE 1:
11+11+17+61

Explanation

The example follows the mathematical conditions and the specified output format.