Help me in solving LUCKYSEVEN problem

My issue

Please help

My code

#include <stdio.h>

int main() {
    char lucky[10]={'p','r','o','c','e','e','d','i','n','g'};
    printf("%c",&lucky[7]);
	return 0;
}


Problem Link: LUCKYSEVEN Problem - CodeChef

@rashika15
U have to do it like this

#include <iostream>
using namespace std;

int main() {
	// your code goes here
	string s;
	cin>>s;
	cout<<s[6];
	return 0;
}

s=input()
for i in range(len(s)):
if(i==7):
print(s[i-1])