[백준] FYI (17863)(kotlin)

문제 설명

백준 17863번 문제 링크

입력 및 출력

» 입력

The input consists of a single line containing a 7-digit positive integer N, (1000000 <= N <= 9999999).

» 출력

The single output line consists of the word YES if the number should be routed to the directory information operator or NO if the number should not be routed to the directory information operator.

예제 입출력

입력 출력
5551212 YES
5519876 NO
5055555 NO
5550000 YES

문제 풀이1

fun main(args: Array<String>) = println(
    if (readLine()!!.startsWith("555")) "YES"
    else "NO"
)