Lucky tickets are a kind of mathematical entertainment. A ticket is considered lucky if the sum of the first 3 digits equals the sum of the last 3 digits of the ticket number.
You are supposed to write a program that checks whether the two sums are equal. The code snippet below displays "Lucky" if they are and "Ordinary" if they are not.
However, some parts of the code are missing. Fill in the blanks to make it work!
Input: a string of 6 digits.
Output: either "Lucky" or "Ordinary" (without quotes).
Make sure that you are NOT concatenating strings. To do this, convert each digit in the ticket number to an integer. Don't forget to use proper indices.