//https://onlinejudge.u-aizu.ac.jp/challenges/sources/PCK/Prelim/0335?year=2016

#include <bits/stdc++.h>

using namespace std;

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

    cout << n * 32 << endl;
    return 0;
}

/*
 *
 */
