In this task, you need to replace a letter in the sentence with another given letter.
Sentence: 'the cows were painted in a ritualistic manner for the ceremony'. Replace the letter 'a' with 'p' in the sentence.