function Main(input) {
	data = input.trim()
	if (data.length % 2 == 1) {
		console.log("No")
		return
	}
	for (var i = 0, j = data.length - 1; i < j; ++i, --j) {
		if (!((data[i] == 'b' && data[j] == 'd') ||
			(data[i] == 'd' && data[j] == 'b') ||
			(data[i] == 'p' && data[j] == 'q') ||
			(data[i] == 'q' && data[j] == 'p'))) {
				console.log("No")
				return
		}
	}
	console.log("Yes")
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));
