Tìm các số chia hết cho 3

View as PDF



Problem types
Points: 800 Time limit: 2.0s Memory limit: 256M Input: stdin Output: stdout

Cho một số tự nhiên \(N\). Hãy đếm xem từ \(1\) đến \(N\) có bao nhiêu số chia hết cho \(3\).

Input

  • Một số tự nhiên \(N\)

Output

  • Một số là kết quả của bài toán

Example

Test 1

Input
10 
Output
3

Comments (30)

Most recent
Loading comments...