package javaapplication28;
import java.util.Scanner;
/**
*
* @author qingzhu
*/
public class JavaApplication28 /*** @param args the command line arguments*/
public static void main(String[] args) {
Scanner reader=new Scanner(System.in);
String s=reader.nextLine();
char a[]=s.toCharArray();
for(int i=0;i<a.length;i++){
a[i]=(char)(a[i]^'w');}
String secret=new String(a);
System.out.println("密文:"+secret);
for(int i=0;i<a.length;i++){
a[i]=(char)(a[i]^'w');}
String code=new String(a);
System.out.println("原文:"+code);
// TODO code application logic here
}
}