#include using namespace std; int c(int x){ if(x<=59) return 0; else if(x<=61) return 10; else if(x<=64) return 17; else if(x<=66) return 20; else if(x<=69) return 23; else if(x<=74) return 27; else if(x<=79) return 30; else if(x<=84) return 33; else if(x<=89) return 37; else if(x<=94) return 40; else return 43; } int main(){ // cout<>t; while(t--){ int x;cin>>x; int ans=0; for(int i=0;i<=100;i+=(i==0?60:1)){ for(int i2=0;i2<=100;i2+=(i2==0?60:1)){ for(int i3=0;i3<=100;i3+=(i3==0?60:1)){ int i4=x-i-i2-i3; if(i4<0||i4>100)continue; ans=max(ans,c(i)+c(i2)+c(i3)+c(i4)); } } } cout<