PHƯỚC HƯNG OJ · THỬ THÁCH THUẬT TOÁN

#SCKTCUOIKI0008. Đếm các số chia hết cho 3 (Count Multiples of Three)

Bài tập này chưa được xếp vào lộ trình.

Đếm các số chia hết cho 3 (Count Multiples of Three)

Count Multiples of Three

**Version: Phuoc Hung OJ Extended

Problem Statement

Given a positive integer nn, count the integers divisible by 33 among 1,2,…,n1,2,\ldots,n, including nn. Use a loop and a conditional statement to check each integer.

Input

The only line contains the integer nn.

Output

Print one integer: the number of integers divisible by 33 in the inclusive range from 11 to nn.

Subtasks

  • Subtask 1 (20 points): 1≤n≤151\le n\le15.
  • Subtask 2 (30 points): 1≤n≤501\le n\le50.
  • Subtask 3 (50 points): 1≤n≤1001\le n\le100.

Examples

Input

11

Output

3

Explanation

The multiples of 33 from 11 through 1111 are 33, 66, and 99. The next multiple, 1212, is outside the range. There are exactly 33 such integers, so print 3.