#include using namespace std; int main(){ unsigned long long ans = 0,n; cin >> n; ans += 16 * n / 15; cout << ans << endl; }