LearnPy Hub
← Arena
IntermediateRating 1400

Switching Lamps

n lamps start off. In round i (1..n) every i-th lamp is toggled. Print how many are on at the end.

Input

One integer n (≤ 10¹⁸).

Output

A count.

Sample 1

Input
3
Output
1

Sample 2

Input
1
Output
1
solution.py
Output appears here
Switching Lamps · Python Arena problem · LearnPy Hub