/*
l'L'l
*/

import java.io.*;

class Test{
   public static void main(String args[]){
      String p = new String("IPhone 5s &#x0024;400");
	  String r = p.replaceAll("(&#x0024;)","\\|\\$");

	  String[] s = r.split("\\|"); 
	  System.out.println(s[0]);    // IPhone 5s
	  System.out.println(s[1]);    // $400
   }
}