fork download
  1. while True:
  2. try:
  3. input = raw_input()
  4. except EOFError:
  5. break
  6. except KeyboardInterrupt:
  7. break
  8.  
  9. output = ""
  10. for word in input.split():
  11. output += word[0].upper() + word[1:]
  12.  
  13. print(output)
  14.  
Success #stdin #stdout 0.03s 118656KB
stdin
Dzisiaj jest czwaRtek, 
A jutro bedzie piatek. 
a tu cos z            Malej litery
stdout
DzisiajJestCzwaRtek,
AJutroBedziePiatek.
ATuCosZMalejLitery