#include <stdio.h>

int main(void)
{
  const char *s = "20";
  
  int n;
  sscanf(s, "%x", &n);
  printf("%d", n);
  
  return 0;
}