In a certain country, warriors communicate through smartphones. However, many warriors focus solely on their training and may not have enough resources. When they need to call a number, they want to know which operator serves that number.
Your task is to write a function that accepts a phone number and returns the name of the operator that serves this number. If the operator cannot be identified, the function should return the string "no info". A phone number is always formatted as 8yyyxxxxxxx, where yyy corresponds to the operator code.
Operators List
The following operators are available:
Golden Telecom: 039 xxx xx xx
MTS: 050 xxx xx xx
Life:): 063 xxx xx xx
MTS: 066 xxx xx xx
Kyivstar: 067 xxx xx xx
Beeline: 068 xxx xx xx
Life:): 093 xxx xx xx
MTS: 095 xxx xx xx
Kyivstar: 096 xxx xx xx
Kyivstar: 097 xxx xx xx
Kyivstar: 098 xxx xx xx
MTS: 099 xxx xx xx (Return "MTS" for test cases)
Input Format
The input is a string representing the phone number in the format 8yyyxxxxxxx, where:
yyy is the operator code (3 digits).
xxxxxxx is the remaining part of the number (7 digits).
Output Format
The output should be a string indicating the operator name corresponding to the input number, or "no info" if the operator cannot be identified.
Examples
Input: 80391234567 Output: Golden Telecom
Input: 80501234567 Output: MTS
Input: 80631234567 Output: Life:)
Input: 80701234567 Output: no info
Input: 80991234567 Output: MTS
Implementation
Please implement the solution in the /app/ directory. The function should be named get_operator_name.
Important: place your implementation at /app/solution.py so the verifier can run it.