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

#GL0000084. Chia N thành ba số với BCNN nhỏ (k-LCM (easy version))

HỌC THEO LỘ TRÌNH

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

1 lộ trình

Chia N thành ba số với BCNN nhỏ (k-LCM (easy version))

k-LCM (easy version)

Source: Codeforces

Version: Phuoc Hung OJ Extended

Problem Statement

Given nn and kk with k=3k=3 in this version, find exactly kk positive integers a1,…,aka_1,\ldots,a_k whose sum equals nn and whose LCM is at most n/2n/2. A valid construction always exists; output any valid one.

Input

One line containing nn and kk.

Output

Print exactly kk positive integers satisfying both conditions.

Subtasks

  • Subtask 1 (20 points): 3≤n≤1003\le n\le100, k=3k=3.

  • Subtask 2 (30 points): 3≤n≤1063\le n\le10^6, k=3k=3.

  • Subtask 3 (50 points): 3≤n≤1093\le n\le10^9, k=3k=3.

Examples

Input

8 3

Output

4 2 2

Explanation

The three numbers sum to 4+2+2=84+2+2=8, and their LCM is 44, which does not exceed 8/2=48/2=4.