#include<cstdio>
int main() {
  int a;
  scanf("%d",&a);
  printf("%d",262144*a);
}