class Ideone {
   
  
   public static void main (String args[]) {
      String str = "h3jv3s11";
      String res = "";
      int l = 0;
      int r = 0;
      while (l < str.length()) {
         if(Character.isDigit(str.charAt(l))) {
            r = l;
            while (r < str.length() && Character.isDigit(str.charAt(r))) r++;
            res += fill(str.charAt(l - 1), Integer.parseInt(str.substring(l, r)) - 1);
            l = r;
         } else {
            res += str.charAt(l);
            l++;
         }
      }
      System.out.println(res);
   }
   
   public static String fill(char c, int l) {
      String res = "";
      for(int i = 0; i < l; i++) {
         res += c;
      }
      return res;
   }
}