ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules

Open Ural FU Championship 2013

About     Problems     Submit solution     Judge status     Standings
Contest is over

A. Parallel and Perpendicular

Time limit: 0.5 second
Memory limit: 64 MB
You are given a regular n-gon. Your task is to calculate two values: the number of its diagonals that are parallel to at least one of its other diagonals, and the number of its diagonals that are perpendicular to at least one of its diagonals. A diagonal is a segment connecting two non-adjacent polygon vertices.

Input

The only line contains an integer n (4 ≤ n ≤ 105).

Output

Output two required numbers.

Sample

inputoutput
4
0 2
Problem Author: Grigory Nazarov
Problem Source: Open Ural FU Championship 2013
To submit the solution for this problem go to the Problem set: 1981. Parallel and Perpendicular