#include<stdio.h>
int main(){
int N,count; //count为总瓶数
scanf("%d",&N);
int w,s,p;
w=N/50; //w能分出几个50元
s=(N-50*w)/30; //分出w个50元后 还能分出几个30元
p=(N-50*w-30*s)/10; //剩下的钱能买的普通瓶数
count=7*w+4*s+p; //w买5赠2; s买3送1; p是普通
printf("%d",count);
return 0;
}
水题。。。