def nombre_metre(S):
    C = 130
    n = 1
    while C < S:
        n = n + 1
        C = C + 52*n+78
    return n
