// Lab 2 Session 5
// September 11th, 2001
// Katie Williams and Jochen Balbach

#include <iostream>
#include <string>
#include <iomanip>
using namespace std;

int main() {

string pw="swordfish";
string code;
char alpha, beta, xor;

cout << "Enter a one line message: " << endl;
string read;
getline(cin,read);

while(read.length() > pw.length()){
	pw += pw;
}

for(int i=0;i<read.length();i++){
	
	alpha=pw[i];
	beta=read[i];
	
	xor=(alpha^beta);
	code[i]=xor;
	
	cout <<code[i] << " ";
}

cout << code <<endl;

}
