CF384B Multitasking

Description

Iahub wants to enhance his multitasking abilities. In order to do this, he wants to sort $ n $ arrays simultaneously, each array consisting of $ m $ integers. Iahub can choose a pair of distinct indices $ i $ and $ j $ $ (1

Input Format

The first line contains three integers $ n $ $ (1

Output Format

On the first line of the output print an integer $ p $ , the size of the array ( $ p $ can be at most ![](https://cdn.luogu.com.cn/upload/vjudge_pic/CF384B/423105717bb2ab1ec1635f735571b59733cc0d8f.png)). Each of the next $ p $ lines must contain two distinct integers $ i $ and $ j $ $ (1

Explanation/Hint

Consider the first sample. After the first operation, the arrays become $ [1,3,2,5,4] $ and $ [1,2,3,4,5] $ . After the second operation, the arrays become $ [1,2,3,5,4] $ and $ [1,2,3,4,5] $ . After the third operation they become $ [1,2,3,4,5] $ and $ [1,2,3,4,5] $ .