Compilation error

My code-
https://www.codechef.com/FEB21C/submit/MEET

an you please correct my code in python

where is your code?

as this is an ongoing contest so i didn’t provide you the solution
i only tell you the mistake ,you have done
share your code

i can’t see your code there

Here is my code

Sorry,please igmore the first one


this is the code

you have done many errors
R=list(map(input().split()))
what is R
is_pm = ins[-2:].lower() == ‘pm’ what is ins here

first dry run your code and try to rectify it