Below is the problem statement
Lucky Seven
Chef considers the number 77 lucky. As a result, he believes that the 77-th letter he sees on a day is his lucky letter of the day.
You are given a string SS of length 1010, denoting the first 1010 letters Chef saw today.
What is Chef’s lucky letter?
Input Format
- The only line of input contains a string SS, of length 1010.
Output Format
- Print a single character: Chef’s lucky letter .
Constraints
- SS has a length of 1010
- SS contains only lowercase Latin letters (i.e, the characters
'a'to'z')
Sample 1:
Input
Output
proceeding
d
Explanation:
The 77-th character of “proceeding”“proceeding” is 'd', and hence that is Chef’s lucky letter.
Sample 2:
Input
Output
outofsight
i
Explanation:
The 77-th character of “outofsight”“outofsight” is 'i', and hence that is Chef’s lucky letter.