#2835. Fifty-Fifty

0

Fifty-Fifty

Fifty-Fifty

题目描述

You are given a 44-character string SS consisting of uppercase English letters. Determine if SS consists of exactly two kinds of characters which both appear twice in SS.

输入格式

Input is given from Standard Input in the following format: SS

输出格式

If SS consists of exactly two kinds of characters which both appear twice in SS, print YesYes; otherwise, print NoNo.

ASSA
Yes
STOP
No
FFEE
Yes
FREE
No

提示

The length of SS is 44. SS consists of uppercase English letters.SS consists of AA and SS which both appear twice in SS.

标签: AtCoder|abc132A

来源

AtCoder|abc132A