# -*- coding: utf-8 -*- print(input().swapcase())