#include using namespace std; int main() { int N; cin >> N; int m = N, M = 6*N; double ans = (m + M) / 2.0; cout << fixed << setprecision(5) << ans << endl; }