1. 

/**
* Angewandte Mathematik, SS09, IFB 2C
* ACM Problem #10082 (WERTYU)
*
* @author David Leib
* @author Julius Tschannerl
* @version 1.0, 03/31/2009
*
* Status : Accepted
* Runtime: 0.080
*/

import java.io.*;

public class Main {

private static char decode(char chr)
{
switch(chr){
case 'W': return 'Q';
case 'E': return 'W';
case 'R': return 'E';
case 'T': return 'R';
case 'Y': return 'T';
case 'U': return 'Y';
case 'I': return 'U';
case 'O': return 'I';
case 'P': return 'O';
case '[': return 'P';
case ']': return '[';
case '\\': return ']';
case '1': return '`';
case '2': return '1';
case '3': return '2';
case '4': return '3';
case '5': return '4';
case '6': return '5';
case '7': return '6';
case '8': return '7';
case '9': return '8';
case '0': return '9';
case '-': return '0';
case '=': return '-';
case 'S': return 'A';
case 'D': return 'S';
case 'F': return 'D';
case 'G': return 'F';
case 'H': return 'G';
case 'J': return 'H';
case 'K': return 'J';
case 'L': return 'K';
case ';': return 'L';
case '\'': return ';';
case 'X': return 'Z';
case 'C': return 'X';
case 'V': return 'C';
case 'B': return 'V';
case 'N': return 'B';
case 'M': return 'N';
case ',': return 'M';
case '.': return ',';
case '/': return '.';
default: return ' ';
}
}

public static void main(String...args) throws IOException
{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line = br.readLine();
while (line != null)
{
StringBuilder sb = new StringBuilder();
for (int i = 0; i < line.length(); i++)
sb.append(decode(line.charAt(i)));
System.out.println(sb.toString());
line = br.readLine();
}
System.exit(0);

}
}

2.

/**
* Angewandte Mathematik, SS09, IFB 2C
* ACM Problem #10082 (WERTYU)
* Link: http://icpcres.ecs.baylor.edu/onlinejudge/index.php?option=com_onlinejudge&Itemid=8&category=12&page=show_problem&problem=1023
*
* @author Lermer Florian, Taskin Umut, Sayli Hidir
* @version 1.0, 04/05/2009
*
* Status : Accepted
* Runtime: 0.100
*/

import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
public class Main {

public static void main(String[] args) {
Scanner in = new Scanner(System.in);
String s, temp;
Map<String, String> t = new HashMap<String, String>();
t.put("1", "`"); t.put("2", "1"); t.put("3", "2");
t.put("4", "3"); t.put("5", "4"); t.put("6", "5");
t.put("7", "6"); t.put("8", "7"); t.put("9", "8");
t.put("0", "9"); t.put("-", "0"); t.put("=", "-");
t.put("W", "Q"); t.put("E", "W"); t.put("R", "E");
t.put("T", "R"); t.put("Y", "T"); t.put("U", "Y");
t.put("I", "U"); t.put("O", "I"); t.put("P", "O");
t.put("[", "P"); t.put("]", "["); t.put("S", "A");
t.put("D", "S"); t.put("F", "D"); t.put("G", "F");
t.put("H", "G"); t.put("J", "H"); t.put("K", "J");
t.put("L", "K"); t.put(";", "L"); t.put("'", ";");
t.put("X", "Z"); t.put("C", "X"); t.put("V", "C");
t.put("B", "V"); t.put("N", "B"); t.put("M", "N");
t.put(",", "M"); t.put(".", ","); t.put("/", ".");
while(in.hasNextLine()){
s = in.nextLine();
for (int i = 0; i < s.length(); i++) {
temp = s.substring(i, i + 1);
if(t.containsKey(temp)){
System.out.print(t.get(temp));
}
else{
System.out.print(temp);
}
}
System.out.println();
}
}
}

3.

/**
* Angewandte Mathematik, SS09, IFB 2C
* ACM Problem #10082 (QWERTY)
* Link: http://icpcres.ecs.baylor.edu/onlinejudge/index.php?option=com_onlinejudge&Itemid=8&category=12&page=show_problem&problem=1023
*
* @author Fabian Seidl
* @author Marcel Sachse
* @version 1.0, 20/04/2009
*
* Status : Accepted
* Runtime: 0.100
*/

import java.io.*;
import java.util.Scanner;



public class Main {

public static void main(String[] args) throws Exception
{
BufferedInputStream bInput = new BufferedInputStream(System.in);
Scanner scanner = new Scanner(bInput);

Writer out = new BufferedWriter(new PrintWriter(System.out));

while(scanner.hasNextLine())
{
String in = scanner.nextLine();

char[] replace = "`1234567890-=_QWERTYUIOP[]\\_ASDFGHJKL;'_ZXCVBNM,./".toCharArray();

int end = replace.length-1;
for(int i=0;i<end;i++)
{
in = in.replace(replace[i+1], replace[i]);
}

out.write(in+"\n");
out.flush();
}

out.close();

}

}