Sample Input:
15 43 71
Sample Output:
#123456
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
//System.out.println(Integer.toString(15, 13));
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
String string = Integer.toString(a, 13).toUpperCase();
String string2 = Integer.toString(b, 13).toUpperCase();
String string3 = Integer.toString(c, 13).toUpperCase();
StringBuffer sb1 = new StringBuffer(string);
StringBuffer sb2 = new StringBuffer(string2);
StringBuffer sb3 = new StringBuffer(string3);
if(string.length()==1) {
sb1.insert(0, "0");
}
System.out.print("#"+sb1);
if(string2.length()==1) {
sb2.insert(0, "0");
}
System.out.print(""+sb2);
if(string3.length()==1) {
sb3.insert(0, "0");
}
System.out.print(""+sb3);
}
}