← All problemsSign in

Lucky Seven

CodeChefRating 213Open on judge ↗

Chef considers the number $7$ lucky. As a result, he believes that the $7$-th letter he sees on a day is his *lucky letter* of the day. You are given a string $S$ of length $10$, denoting the first $10$ letters Chef saw today. What is Chef's *lucky letter*? ### Input - The only line of input contains a string $S$, of length $10$. ### Output - Print a single character: Chef's lucky letter . #

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start