<?php
$bacon=array('a'=>'AAAAA', 'b'=>'AAAAB', 'c'=>'AAABA', 'd'=>'AAABB', 'e'=>'AABAA', 'f'=>'AABAB'); $word="the jOs to kIll fAr";
$word.=" B";
$baconWord="";
for($i=0; $i<count($word1); $i++) { $baconWord.=$bacon[$word1[$i]];
}
echo $baconWord;
// your code goes here
PD9waHAKCiRiYWNvbj1hcnJheSgnYSc9PidBQUFBQScsICdiJz0+J0FBQUFCJywgJ2MnPT4nQUFBQkEnLCAnZCc9PidBQUFCQicsICdlJz0+J0FBQkFBJywgJ2YnPT4nQUFCQUInKTsKJHdvcmQ9InRoZSBqT3MgdG8ga0lsbCBmQXIiOwoKJHdvcmQ9c3RyX3JlcGxhY2UoIiAiLCIiLCR3b3JkKTsKJHdvcmQ9d29yZHdyYXAoJHdvcmQsNSwiICIsdHJ1ZSk7Cgokd29yZC49IiBCIjsKCiR3b3JkPXByZWdfcmVwbGFjZSgiIVtBLVpdISIsICJCIiwgJHdvcmQpOyAKJHdvcmQ9cHJlZ19yZXBsYWNlKCIhW2Etel0hIiwgIkEiLCAkd29yZCk7Cgokd29yZDE9ZXhwbG9kZSgiICIsJHdvcmQpOwokYmFjb249YXJyYXlfZmxpcCgkYmFjb24pOwoKJGJhY29uV29yZD0iIjsKZm9yKCRpPTA7ICRpPGNvdW50KCR3b3JkMSk7ICRpKyspICB7CiAgICAkYmFjb25Xb3JkLj0kYmFjb25bJHdvcmQxWyRpXV07Cn0KCmVjaG8gJGJhY29uV29yZDsKLy8geW91ciBjb2RlIGdvZXMgaGVyZQ==