#include <bits/stdc++.h>
using namespace std;


int main(){
    int x;  cin >> x;

    int ans = 0;
    if(x == 2){
        ans = 2;
    }
    else if(x % 2 == 0){
        ans = 4 + 10 * (x / 2 - 2);
    }
    else{
        ans = 5 + 10 * ((x - 1) / 2 - 1);
    }
    cout << ans << endl;

    return 0;
}