#include <iostream>
using namespace std;

int main() 
{

   int i, j;
cin >> i;
j = i;
if (i >= 9)
i += 9 - i;
j /= i;
cout << j;
}