<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def chr22XY(c):
 """force to name from 1..22, 23, 24, X, Y, M to in chr1..chr22, chrX, chrY, chrM str or ints accepted 'chr1' 'chr1' 'chr1' 'chrX' 'chrY' 'chrX' 'chrX' 'chrM' """

    c = str(c)
    if c[0:3] == 'chr':
        c = c[3:]
    if c == '23':
        c = 'X'
    if c == '24':
        c = 'Y'
    return 'chr' + c