In every generation there is a Chosen One. She alone will stand against the vampires, the demons, and the forces of darkness. She is the Slayer. — Joss Whedon

A string $$$s$$$ ($$$3 \le |s| \le 7$$$) consisting of lowercase English letters.

A single string. If there is no answer, print "none" (without the quotes).

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        String[] strings = new String[]{"buffy", "the", "vampire", "slayer"};
        String in = br.readLine();
        boolean found = false;
        for (String s : strings) {
            if (s.length() == in.length()) {
                found = true;
                for (int i = 0; i < s.length(); i++) {
                    System.out.print((char) ((in.charAt(i) + s.charAt(i) - 'a' - 'a') % (26) + 'a'));
                }
            }
        }
        if (!found) {
            System.out.println("none");
        }

        br.close();
    }
}

import java.util.Scanner;

public class EveryGeneration
{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s, t1 = "vampire", t2 = "buffy", t3 = "slayer", t4="the";
		s = sc.next();
		int pp = s.length() ;
		if(pp == 7)
		{
			String t = "";
			for(int i = 0; i < 7; i++)
				t += ((char)('a' + (s.charAt(i)-'a' + t1.charAt(i)-'a') % 26));
			System.out.print(t);
		}
		else if(pp == 5)
		{
			String t="";
			for(int i = 0; i < 5; i++)
				t+=((char)('a'+(s.charAt(i)-'a' + t2.charAt(i)-'a') % 26));
			System.out.print(t);
		}
		else if(pp == 6)
		{
			String t="";
			for(int i = 0; i < 6; i++)
				t+=((char)('a'+(s.charAt(i)-'a' + t3.charAt(i)-'a')%26));
			System.out.print(t);
		}
		else if(pp == 3)
		{
			String t="";
			for(int i = 0; i < 3; i++)
				t+=((char)('a'+(s.charAt(i)-'a' + t4.charAt(i)-'a') % 26));
			System.out.print(t);
		}
		else System.out.print("none");
	}
}

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        String[] strings = new String[]{"buffy", "the", "vampire", "slayer"};
        String in = br.readLine();
        for (String s : strings) {
            if (s.length() == in.length()) {
                for (int i = 0; i < s.length(); i++) {
                    System.out.print((char) ((in.charAt(i) + s.charAt(i) - 'a' - 'a') % (26) + 'a'));
                }
            }
        }

        br.close();
    }
}