#include<bits/stdc++.h> using namespace std; int main(){ float x; cin>>x; if(x>=20) { cout<<1.98*x; } else { cout<<1.68*x; } }