def there_and_back(t: float) -> float:
    new_t = ((2 * t) if (t < 0.5) else (2 * (1 - t)))
    return smooth(new_t)
def there_and_back(t: float) -> float:
    new_t = ((2 * t) if (t < 0.5) else (2 * (1 - t)))
    return smooth(new_t)