#include <iostream>

using namespace std;

int main()
{
    const int INT_SIZE = 4; // 一个整数占据4个字节
    const int ONE_KB = 1024; // 1KB等于1024B
    const int ONE_MB = 1024; // 1MB等于1024KB
    int mb;
    cin >> mb;
    int count = (mb * ONE_MB * ONE_KB) / INT_SIZE;
    cout << count;
    return 0;
}