Password
시간 제한2초메모리 제한2048 MB
길이가 n인 비밀번호에서 연속한 세 문자마다 비문자가 하나 이상 있고 가운데 위치가 비문자일 때, 비문자 개수의 최솟값과 최댓값을 구한다.
문제
After another leak of personal data, the administrator of Pochta.com decided to tighten the rules for employee passwords. Now, each employee's password must consist of exactly characters, and non-letter characters must occur among every three consecutive characters. Additional restriction is that the non-letter character must be present in the center of the password: one center character if is odd, or both characters closest to the center if is even.
For example, for , the following passwords are valid: "p4ss\#or0s", "1a2b34CD5". The password "1234a56bc" is not valid because the fifth character must be non-letter. The password "9ASE\#orkd" is not valid because it contains three letters in a row.
For , the passwords "ab23bc" and "5a428E" are valid. The passwords "111e11" and "4sy1um" are not valid.
The employees now wonder: what is the minimum and maximum number of non-letter characters that can occur in a password of a given length? Help them figure this out.
입력
The first line contains an integer : the length of the password ().
출력
Output two integers separated by a space: the minimum and maximum number of non-letter characters in the password.