12 lines
203 B
C++
12 lines
203 B
C++
#include <bits/stdc++.h>
|
|
|
|
using namespace std;
|
|
int n, cnt;
|
|
int main() {
|
|
cin >> n;
|
|
for (int i = 3; i <= n; i++)
|
|
if (i % 10 == 3) cnt++;
|
|
|
|
cout << cnt << endl;
|
|
return 0;
|
|
} |