Темы:
Finding a substring in a string
Find 1543 in the text.
Input
The program receives as input a text containing arbitrarily long lines. The number of lines is unknown.
Output
If it contains the number 1543 , print the word URA, if 1543 does not occur in the file, print NO .
Examples
# |
Input |
Output |
1 |
hgdfjgkdghkdjgkgkd1543gjdlgkdjlg |
URA |
2 |
1=5 4=3 |
NO |
|