     for w of weekOk
         if w<firstWeek
             delete weekOk[w]
+
+    if user._id == DEBUG_USER_ID
+        console.log "activity=", activity, "rating=", rating
 
     activity *= (1 - WEEK_ACTIVITY_EXP) # make this averaged
     return {

        week = weekByTime(r.lastSubmitTime)
        if r.solved == 1 or r.ok == 1
            rating += levelScore(level) * FM_CONST
            activity += activityScore(level, r.lastSubmitTime) * FM_CONST

    for level in ["1А", "1Б"]

    else
        major = parseInt(level.slice(0, -1))
        minor = level[level.length - 1]
    if isNaN(major)
        throw new Error("Can't parse level " + level)
    return {
        major: major,
        minor: minor
