#2531. 夹心饼干

夹心饼干

Background

Special for beginners, ^_^

Description

如果一个字符串,两边是两个大写字母,中间是一个六位数,就是一块夹心饼干。

Format

Input

一个不超过10个字符的字符串。

Output

如果是夹心饼干则输出 "Yes" ,否则输出 "No" 。

Samples

A114514B
Yes

Limitation

1s, 1024KiB for each test case.