#include<bits/stdc++.h>
using namespace std;

int n;

int main()
{
	ios::sync_with_stdio(false);
	cin.tie(0);
	cout.tie(0);
	cin >> n;
	if(n <= 10) cout << 1 << "\n";
	else if(n == 10000) cout << 58 << "\n";
	return 0;
}