package easy;
import java.util.Scanner;
/**
*poj3650 easy
* 取模式串时,最好都加[]
* @author NC
*/
public class Poj3650 {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
while (scan.hasNext()) {
String s = scan.nextLine().trim();
if (s.equals("#")) {
break;
}
s = s.replaceAll("[%]", "%25");
s = s.replaceAll("[ ]", "%20");
s = s.replaceAll("[!]", "%21");
s = s.replaceAll("[$]", "%24");
s = s.replaceAll("[(]", "%28");
s = s.replaceAll("[)]", "%29");
s = s.replaceAll("[*]", "%2a");
System.out.println(s);
}
}
}
import java.util.Scanner;
/**
*poj3650 easy
* 取模式串时,最好都加[]
* @author NC
*/
public class Poj3650 {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
while (scan.hasNext()) {
String s = scan.nextLine().trim();
if (s.equals("#")) {
break;
}
s = s.replaceAll("[%]", "%25");
s = s.replaceAll("[ ]", "%20");
s = s.replaceAll("[!]", "%21");
s = s.replaceAll("[$]", "%24");
s = s.replaceAll("[(]", "%28");
s = s.replaceAll("[)]", "%29");
s = s.replaceAll("[*]", "%2a");
System.out.println(s);
}
}
}