import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class Main12 {
public static void main(String[] args) {
Scanner scanner =
new Scanner(System.
in);
String
string = scanner.nextLine();
int n = Integer.parseInt(
string);
List<Integer> list =
new ArrayList<>();
String[] iarr = {
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"A",
"B" };
int tmp =
0;
if (n ==
0) {
list.add(
0);
}
else {
while (n >
0) {
tmp = n %
12;
list.add(tmp);
n = n /
12;
}
}
for (
int i = list.size() -
1; i >=
0; i--) {
System.
out.print(iarr[list.
get(i)]);
}
}
}
转载请注明原文地址: https://ju.6miu.com/read-1294096.html