302157: CF411A. Password Check

Memory Limit:256 MB Time Limit:1 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

Password Check

题意翻译

问一个字符串是否满足一下条件: + 长度不小于5 + 含有数字 + 含有大写字母 + 含有小写字母 如果以上条件均成立,输出“Correct”(没有引号) 否则,输出“Too weak”(没有引号)

题目描述

You have probably registered on Internet sites many times. And each time you should enter your invented password. Usually the registration form automatically checks the password's crypt resistance. If the user's password isn't complex enough, a message is displayed. Today your task is to implement such an automatic check. Web-developers of the company Q assume that a password is complex enough, if it meets all of the following conditions: - the password length is at least 5 characters; - the password contains at least one large English letter; - the password contains at least one small English letter; - the password contains at least one digit. You are given a password. Please implement the automatic check of its complexity for company Q.

输入输出格式

输入格式


The first line contains a non-empty sequence of characters (at most $ 100 $ characters). Each character is either a large English letter, or a small English letter, or a digit, or one of characters: "!", "?", ".", ",", "\_".

输出格式


If the password is complex enough, print message "Correct" (without the quotes), otherwise print message "Too weak" (without the quotes).

输入输出样例

输入样例 #1

abacaba

输出样例 #1

Too weak

输入样例 #2

X12345

输出样例 #2

Too weak

输入样例 #3

CONTEST_is_STARTED!!11

输出样例 #3

Correct

Input

题意翻译

问一个字符串是否满足一下条件: + 长度不小于5 + 含有数字 + 含有大写字母 + 含有小写字母 如果以上条件均成立,输出“Correct”(没有引号) 否则,输出“Too weak”(没有引号)

加入题单

上一题 下一题 算法标签: