25 lines
388 B
Python
25 lines
388 B
Python
#! /usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
# vim:fenc=utf-8
|
|
#
|
|
# Copyright © 2020 <pavle.portic@tilda.center>
|
|
#
|
|
# Distributed under terms of the BSD 3-Clause license.
|
|
|
|
text = input().lower()
|
|
case = True
|
|
output = ''
|
|
for c in text:
|
|
if c in [',', '.', ' ', ':', '"', '\'']:
|
|
output += c
|
|
continue
|
|
|
|
if case:
|
|
output += c.upper()
|
|
else:
|
|
output += c
|
|
|
|
case = not case
|
|
|
|
print(output)
|