#include #include using namespace std; int main() { int N; cin >> N; cout << fixed << setprecision(10) << 21.0 * (double)N / 6.0 << endl; return 0; }