#include <stdio.h>

int main() {
  int w;
  scanf("%d", &w);
  printf("%d\n", 32*w);

  return 0;
}