﻿using System;

namespace _04.Variable_In_Hex_Format
{
    public class StartUp
    {
       public static void Main()
       {
           string integerInHexadecimal = Console.ReadLine();
           Console.WriteLine(Convert.ToInt32(integerInHexadecimal, 16));
       }
    }
}
