#304. 字符串子串条件检查

    ID: 304 Type: Default 1000ms 256MiB Tried: 0 Accepted: 0 Difficulty: (None) Uploaded By: Tags>codingbatString-2gesp3字符串模拟

字符串子串条件检查

Check Specific Substring

Background

Congcong has recently been studying some special string patterns. He discovered an interesting rule and needs your help to determine if a given string conforms to this rule.

Problem Description

Return true if the given string contains an appearance of "xyz" where the "xyz" is not directly preceded by a period (.). So "xxyz" counts but "x.xyz" does not.

Input Format

Input is given from standard input in the following format.

A single string SS.

Output Format

Output is printed to standard output in the following format.

Output "true" if the string meets the condition; otherwise, output "false".

Sample

abcxyz
true
abc.xyz
false
xyz.abc
true

Sample Explanation

For the first sample "abcxyz\