#include <iostream>
using namespace std;
int main() {
  int w;
  cin >> w;
  cout << 32*w << endl;
}