import java.util.*;
public class Naloga27{
	public static void main(String[]args){
		Scanner sc = new Scanner(System.in);
		int st, ost;
		String sest = "";
		System.out.print("Vnesi des st: ");
		st = sc.nextInt();
		while(st > 0){
			ost = st % 16;
			if (ost == 10)
				sest = "A"+sest;
			else if (ost == 11)
				sest = "B"+sest;
			else if (ost == 12)
				sest = "C"+sest;
			else if (ost == 13)
				sest = "D"+sest;
			else if (ost == 14)
				sest = "E"+sest;
			else if (ost == 15)
				sest = "F"+sest;
			else
				sest = ost + sest;
			st = st / 16;
		}
		System.out.println("Šestnajstiško: "+sest);
	}
}