#include<bits/stdc++.h> using namespace std; int main(){ int y,x; char n; cin>>y>>n; if(y<=1000) x=8; else x=17; cout<<x; return 0; }