a = gets.split
a.each_with_index {|ai,i|
	if ai == "peach"
		a[i] = "apple"
	elsif ai == "Peach"
		a[i] = "Apple"
	elsif ai == "apple"
		a[i] = "peach"
	elsif ai == "Apple"
		a[i] = "Peach"
	end
}
puts a.join(" ")