def swap_case(s):
    x=s.swapcase()
    return x
    

if __name__ == '__main__':
    s = input("Enter")
    result = swap_case(s)
    print(result)
def swap_case(s):
    x=s.swapcase()
    return x
    

if __name__ == '__main__':
    s = input("Enter")
    result = swap_case(s)
    print(result)