#1373
Fractions
스페셜 저지
시간 제한
2s
메모리 제한
512MB
제출
0
정답
0
맞힌 사람
0
정답 비율
0.0%
문제
You are given a positive integer .
Find a sequence of fractions , (where and are positive integers) for some such that:
입력
The input consists of a single integer ().
출력
In the first line print "YES" if there exists such a sequence of fractions or "NO" otherwise.
If there exists such a sequence, next lines should contain a description of the sequence in the following format.
The second line should contain integer () — the number of elements in the sequence. It is guaranteed that if such a sequence exists, then there exists a sequence of length at most .
Next lines should contain fractions of the sequence with two integers and on each line.
예제 입력 1
2
예제 출력 1
NO
예제 입력 2
6
예제 출력 2
YES
2
1 2
1 3
노트
In the second example there is a sequence such that .
코드 제출
코드를 제출하려면 로그인이 필요합니다.
로그인내 제출
제출 내역이 없습니다.
맞은 사람
아직 맞은 사람이 없습니다.
난이도 투표
로그인 후 AC 받으면 투표할 수 있습니다.
전체 제출
제출 내역이 없습니다.