CF81E Pairs

Description

There are $ n $ students in Polycarp's class (including himself). A few days ago all students wrote an essay "My best friend". Each student's essay was dedicated to one of the students of class, to his/her best friend. Note that student $ b $ 's best friend is not necessarily student $ a $ , if $ a $ 's best friend is $ b $ . And now the teacher leads the whole class to the museum of the history of sports programming. Exciting stories of legendary heroes await the students: tourist, Petr, tomek, SnapDragon — that's who they will hear about! The teacher decided to divide students into pairs so that each pair consisted of a student and his best friend. She may not be able to split all the students into pairs, it's not a problem — she wants to pick out the maximum number of such pairs. If there is more than one variant of doing so, she wants to pick out the pairs so that there were as much boy-girl pairs as possible. Of course, each student must not be included in more than one pair.

Input Format

The first line contains an integer $ n $ ( $ 2

Output Format

Print on the first line two numbers $ t $ , $ e $ , where $ t $ is the maximum number of formed pairs, and $ e $ is the maximum number of boy-girl type pairs among them. Then print $ t $ lines, each line must contain a pair $ a_{i},b_{i} $ ( $ 1

Explanation/Hint

The picture corresponds to the first sample. On the picture rhomb stand for boys, squares stand for girls, arrows lead from a pupil to his/her best friend. Bold non-dashed arrows stand for pairs in the answer. ![](https://cdn.luogu.com.cn/upload/vjudge_pic/CF81E/d4459c987cdcafcc124667d05e81918009e49fed.png)