Mr. Square is going on a holiday. He wants to bring 2 of his favorite squares with him, so he put them in his rectangle suitcase.

Write a function that, given the size of the squares and the suitcase, return whether the squares can fit inside the suitcase.
```Python
fit_in(a,b,m,n)
a,b are the sizes of the 2 squares
m,n are the sizes of the suitcase
```

# Example
```Python
fit_in(1,2,3,2) should return True
fit_in(1,2,2,1) should return False
fit_in(3,2,3,2) should return False
fit_in(1,2,1,2) should return False
```

Difficulty: introductory

Starter code:

def fit_in(a,b,m,n):
	

Solutions:
def fit_in(a, b, m, n):
  return max(a, b) <= min(m, n) and a + b <= max(m, n)

def fit_in(a,b,m,n):
  return a+b<=max(m,n) and max(a,b)<=min(m,n)

def fit_in(a,b,m,n):
    if m<a+b and n<a+b:
        return False
    if m<max([a,b]) or n<max([a,b]):
        return False
    return True

def fit_in(a,b,m,n):
    # check first dimension
    if max(a, b) > min(m, n):
        return False
    
    # check second dimension
    if sum([a, b]) > max(m, n):
        return False
    
    return True

def fit_in(a,b,m,n):
    if a+b <= max(m,n) and max(a,b) <= min(m,n):
        return True
    else:
        return False

fit_in = lambda a,b,m,n : min(m,n) >= max(a,b) and max(m,n) >= a+b

def fit_in(a,b,m,n):
    # You may code here
    if (a+b)<=m :
        if  (max(a,b)<=n):        
            return True             
        else:        
            return False
    elif max(a,b)<=m:
        if (a+b)<=n:
            return True
        else:
            return False            
    else:   
        return False


def fit_in(a,b,m,n):
    if (min(m, n) >= max(a, b)) and max(m, n) >= a + b: 
        return True
    return False

fit_in=lambda a,b,m,n:a+b<=max(m,n)and min(m,n)>=max(a,b)

def fit_in(a,b,m,n):
    if a+b > max(m,n) or a > min(m,n) or b > min(m,n):
        return False
    return a**2 + b**2 <= m*n