SP7133 IOIGARD - Garden 2005

Description

Byteman owns the most beautiful garden in Bytetown. He planted n roses in his garden. Summer has come

Input Format

The first line of standard input contains two integers: l and w (1

Output Format

The standard output should contain only one line with exactly one integer—the minimum sum of perimeters of two non-overlapping rectangular areas, each containing exactly k roses, or a single word NO, if no such pair of areas exists.