#include<iostream> using namespace std; int main(){ int n; cin>>n; if(n>=0&&n<=5){ cout<<0<<endl; } else if(n>=6&&n<=11){ cout<<590<<endl; } else if(n>=12&&n<=17){ cout<<790<<endl; } else if(n>=18&&n<=59){ cout<<890<<endl; } else if(n>=60){ cout<<399<<endl; } }