package com.company;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class VariableInHexFormat {

    public static void main(String[] args) throws IOException {
	BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

	int result = Integer.parseInt(reader.readLine(), 16);

        System.out.println(result);
    }
}

{'avg_line_length': 23.294117647058822, 'max_line_length': 78, 'alphanum_fraction': 0.7550505050505051, 'licenses': ['MIT'], 'repository_name': 'ivelin1936/Java', 'path': 'Software Technologies/Java Basics - Exercises - Software Technologies/src/com/company/VariableInHexFormat.java', 'size': 396, 'lang': 'Java'}