def classify_flare(peak_count):
    """
    CLassifies the flare based on peak flux
    Input: peak flux of the flare
    Output: Class 
    """
    if(peak_count > 1e5):
        return "X"
    if(peak_count > 1e4):
        return "M"
    if(peak_count > 1e3):
        return "C"
    if(peak_count > 1e2):
        return "B"
    else:
        return "A"