12102 - 小明开超市2

#include<bits/stdc++.h>
using namespace std;
int main(){
	int n;
	double ans;
	cin>>n;
	if(n<=100) ans=n;
	else if(n<=200) ans=n*0.9;
	else ans=n*0.8;
	printf("%.1lf",ans);
	return 0;
}