import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
String userInput;
userInput = s.nextLine();
System.out.println(userInput + Exponents(userInput));
}
public static String Exponents(String x){
x = x.replaceAll("1", "^1");
x = x.replaceAll("2", "^2");
x = x.replaceAll("3", "^3");
x = x.replaceAll("4", "^4");
x = x.replaceAll("5", "^5");
x = x.replaceAll("6", "^6");
x = x.replaceAll("7", "^7");
x = x.replaceAll("8", "^8");
x = x.replaceAll("9", "^9");
return x;
}
}