#897
Bronze II
PASCAL
시간 제한
1s
메모리 제한
32MB
제출
0
정답
0
맞힌 사람
0
정답 비율
0.0%

문제

Little Frane is already in tenth grade, but is still struggling with Pascal in computer class. For homework, his teacher wrote the following program into his notebook, and he needs to determine the output, given the integer N. readln(N); counter := 0; for i := N-1 downto 1 do begin counter := counter + 1;

if N mod i = 0 then break; end; writeln(counter); Write a program which solves Frane's problem.

입력

The first line of input contains the integer N (1 ≤ N ≤ 109).

출력

Output the result on a single line.

예제 입력 1

1

예제 출력 1

0

예제 입력 2

10

예제 출력 2

5

예제 입력 3

27

예제 출력 3

18
코드 제출

코드를 제출하려면 로그인이 필요합니다.

로그인
내 제출
제출 내역이 없습니다.
맞은 사람
아직 맞은 사람이 없습니다.
난이도 투표
Bronze II1명 투표· 약 1개월 전
로그인 후 AC 받으면 투표할 수 있습니다.
전체 제출
제출 내역이 없습니다.