You will be given a definition of a task first, then some input of the task.
You are given two sentences(Sentence1 and Sentence2). Answer "Yes" if these sentences are a paraphrase of one another, otherwise answer "No".

Sentence1: Blair himself took the reins of the Labour Party after its leader John Smith died of a heart attack in 1994 ., Sentence2: Mr Blair became Labour leader in 1994 after the then leader , John Smith , died of a heart attack .
Output:
Yes