#include<bits/stdc++.h>
using namespace std;
int main(){
	int n,i=9;
	cin>>n;
		cout<<n-i;
}