def max2(a,b):
    return a if a>b else b


def abs(n):
    return n if n>=0 else -n


def total(xs):
    s = 0
    for x in xs:
        s = s + x
    return s


int total(int[] xs){int s=0;for(int x:xs){s=s+x;}return s;}


function total(xs){let s=0;for(const x of xs){s=s+x;}return s;}


def fact(n):
    r = 1
    while n > 0:
        r = r * n
        n = n - 1
    return r


int fact(int n){int r=1;while(n>0){r=r*n;n=n-1;}return r;}


function fact(n){let r=1;while(n>0){r=r*n;n=n-1;}return r;}


def fib(n):
    if n < 2:
        return n
    return fib(n-1) + fib(n-2)


int fib(int n){if(n<2)return n;return fib(n-1)+fib(n-2);}


function fib(n){if(n<2)return n;return fib(n-1)+fib(n-2);}


def grade(s):
    if s >= 90:
        return 'A'
    elif s >= 80:
        return 'B'
    else:
        return 'C'


char grade(int s){if(s>=90)return 'A';else if(s>=80)return 'B';else return 'C';}


function grade(s){if(s>=90)return 'A';else if(s>=80)return 'B';else return 'C';}