Capitalization is writing a word with its first letter as a capital letter. Your task is to capitalize the given word.

Note, that during capitalization all the letters except the first one remains unchanged.


-----Input-----

A single line contains a non-empty word. This word consists of lowercase and uppercase English letters. The length of the word will not exceed 10^3.


-----Output-----

Output the given word after capitalization.


-----Examples-----
Input
ApPLe

Output
ApPLe

Input
konjac

Output
Konjac

Difficulty: EASY
Tags: String algorithms

Implementation

Starter code:

Solutions:
n = input()
L = []
for i in n:
	L.append(i)
print(L[0].upper() + ''.join(L[1:]))


str = input()
if str[0].islower():
	str = str[0].upper() + str[1:]
print(str)


s = list(input().strip())
s = s[0].upper() + ''.join(s[1:])
print(s)


word = input()
r = ''
for c in word:
	r += c.upper()
	break
r += word[1:]
print(r)


w = input()
w = w[0].upper() + w[1:]
print(w)


word1 = input()
first1 = word1[0].upper()
last1 = word1[1:]
print(first1 + last1)


word = input()
Word = list(word)
if Word[0].islower():
	Word[0] = Word[0].upper()
print(''.join(Word))


p = input()
s = ''
s = s + p[0].capitalize() + p[1:]
print(s)


n = input()
a = n[0].upper() + n[1:]
print(a)


str_in = input()
b = ['' for i in range(len(str_in))]
b[0] = str_in[0].upper()
for i in range(len(str_in) - 1):
	b[i + 1] = str_in[i + 1]
print(''.join(b))


from sys import stdin

def main():
	line = stdin.readline().strip()
	SALIDA = []
	while len(line) != 0:
		SALIDA.append(line[0].upper() + line[1:])
		line = stdin.readline().strip()
	print('\n'.join(SALIDA))
main()


def capitalize(text):
	a = text[0].upper()
	b = text[1:]
	return a + b
print(capitalize(input()))


word = input()
a = str(word[0])
if a.isupper():
	print(word)
else:
	a = a.upper()
	print(a + word[1:])


s = input()
k = s[0].upper()
print(k + s[1:])


a = input()
b = ''
b = a[0].upper() + a[1:len(a)]
print(b)


word_list = list(input())
word_list[0] = word_list[0].capitalize()
holder = ''
print(holder.join(word_list))


test_str = input()
res = test_str[0].upper() + test_str[1:]
print(res)


x = input()
s = ''
for i in range(0, len(x)):
	if i == 0:
		s += x[i].upper()
	else:
		s += x[i]
print(s)


s = input()
string = s[0]
string = string.upper()
print(string + s[1:])


s = list(input())
s[0] = s[0].capitalize()
print(''.join(s))


a = input()
l = list(map(str, a))
if l[0] >= 'a':
	l[0] = chr(ord(l[0]) - 32)
a = ''.join(l)
print(a)


a = str(input())
d = list(a)
j = d[0]
k = j.upper()
v = a.replace(a[0], k[0], 1)
print(v)


def main():
	data = input()
	data = list(data)
	data[0] = data[0].upper()
	print(''.join(data))
	pass
main()


string = str(input())
firstLetter = string[:1]
firstLetter = firstLetter.upper()
if len(string) > 1:
	print(firstLetter + string[1:])
else:
	print(firstLetter)


a = input()
b = a[0].capitalize()
print(b + a[1:])


s = str(input())
if s[0].isupper():
	print(s)
else:
	print(s[0].upper() + s[1:])


m = str(input())
n = m[0]
a = n.capitalize()
b = a + m[1:]
print(b)


word = input()
result = word[0].upper() + word[1:]
print(result)


s = input()
if s[0] == 'a':
	s = 'A' + s[1:]
if s[0] == 'B':
	s = 'b' + s[1:]
if s[0] == 'c':
	s = 'C' + s[1:]
if s[0] == 'd':
	s = 'D' + s[1:]
if s[0] == 'e':
	s = 'E' + s[1:]
if s[0] == 'f':
	s = 'F' + s[1:]
if s[0] == 'g':
	s = 'G' + s[1:]
if s[0] == 'h':
	s = 'H' + s[1:]
if s[0] == 'i':
	s = 'I' + s[1:]
if s[0] == 'j':
	s = 'J' + s[1:]
if s[0] == 'k':
	s = 'K' + s[1:]
if s[0] == 'l':
	s = 'L' + s[1:]
if s[0] == 'm':
	s = 'M' + s[1:]
if s[0] == 'n':
	s = 'N' + s[1:]
if s[0] == 'o':
	s = 'O' + s[1:]
if s[0] == 'p':
	s = 'P' + s[1:]
if s[0] == 'q':
	s = 'Q' + s[1:]
if s[0] == 'r':
	s = 'R' + s[1:]
if s[0] == 's':
	s = 'S' + s[1:]
if s[0] == 't':
	s = 'T' + s[1:]
if s[0] == 'u':
	s = 'U' + s[1:]
if s[0] == 'V':
	s = 'v' + s[1:]
if s[0] == 'w':
	s = 'W' + s[1:]
if s[0] == 'x':
	s = 'X' + s[1:]
if s[0] == 'y':
	s = 'Y' + s[1:]
if s[0] == 'z':
	s = 'Z' + s[1:]
print(s)


n = input()
if n[0].lower():
	n = n[0].upper() + n[1:]
print(n)


s = list(input())
if ord(s[0]) >= ord('a') and ord(s[0]) <= ord('z'):
	s[0] = chr(ord(s[0]) - 32)
s1 = ''
print(s1.join(s))


string = input()
result = ''
for i in range(len(string)):
	if i == 0:
		result = result + string[i].capitalize()
	else:
		result = result + string[i]
print(result)


import sys
s1 = sys.stdin.readline().rstrip()
a = s1[0].upper()
print(a + s1[1:])


def task(a, A):
	length = len(b)
	step = 1
	result = ''
	if b[0] == a or b[0] == A:
		result = result + A
		while step < length:
			result = result + b[step]
			step = step + 1
		print(result)
b = input()
task('a', 'A')
task('b', 'B')
task('c', 'C')
task('d', 'D')
task('e', 'E')
task('f', 'F')
task('g', 'G')
task('h', 'H')
task('i', 'I')
task('j', 'J')
task('k', 'K')
task('l', 'L')
task('m', 'M')
task('o', 'O')
task('p', 'P')
task('q', 'Q')
task('r', 'R')
task('s', 'S')
task('t', 'T')
task('u', 'U')
task('v', 'V')
task('w', 'W')
task('x', 'X')
task('y', 'Y')
task('z', 'Z')


def cap(s):
	return s[0].upper() + s[1:]
s = input()
print(cap(s))


ls = input()
if str.isupper(ls[0]):
	print(ls)
else:
	print(str.upper(ls[0]) + ls[1:])


a = list(input())
if ord(a[0]) > 91:
	a[0] = chr(ord(a[0]) - 32)
print(''.join(a))


n = input()
str = ''
if n[0].isupper():
	print(n)
else:
	x = n[0].upper()
	for i in range(1, len(n)):
		str = str + n[i]
	print(x + str)


s = input()
if ord(s[0]) >= 97:
	z = ord(s[0]) - 32
	print(chr(z) + s[1:])
else:
	print(s)


s = input()
l = [x for x in s]
l[0] = l[0].upper()
print(''.join(l))


str = input()
if len(str) > 0 and str[0].islower():
	x = str[0].upper()
	print(x + str[1:])
else:
	print(str)


l = list(input().split())
for i in range(len(l)):
	l[i] = l[i][0].upper() + l[i][1:]
print(' '.join(l))


s = list(input())
s[0] = s[0].upper()
ss = ''
ss += s[0]
if 1 <= len(s) <= 1000:
	for i in range(1, len(s)):
		ss += s[i]
	print(ss)


s = input()
s1 = s[0].capitalize()
print(s1, end='')
print(s[1:])


S = input()
s = ''
S1 = S[0].upper()
k = len(S)
for i in range(1, k):
	s = s + S[i]
print(S1 + s)


my_string_list = input()
print(my_string_list[0].upper() + my_string_list[1:])


n = input()
if ord(n[0]) >= 91:
	t = int(ord(n[0]))
	a = chr(t - 32)
	for i in range(1, len(n)):
		a = a + n[i]
	print(a)
else:
	print(n)


s = input()
s1 = list(s)
k = s[0]
if k.isupper():
	print(s)
elif k.islower():
	s1[0] = chr(ord(k) - 32)
	print(''.join(s1))


word = input()
a = word[0].upper() + word[1:]
print(a)


s = input()
s = s[0].upper() + s[1:len(s)]
print(s)


n = input()
b = n.title()
st = str()
for i in range(1, len(n)):
	st = st + n[i]
print(b[0] + st)


word = input()
index = 0
result = ''
while index < len(word):
	if index < 1:
		ch = word[index].upper()
		result = result + ch
		index = index + 1
	else:
		ch = word[index]
		result = result + ch
		index = index + 1
print(result)


strr = str(input())
t = strr[0]
print(str(t.upper()) + strr[1:])


l = str(input())
print(l[0].capitalize() + l[1:])


lastword = ''
word = input()
for i in range(0, 1):
	if word[i] == word[i].upper():
		lastword = lastword + word[i].upper()
	elif word[i] == word[i].lower():
		lastword = lastword + word[i].upper()
for i in range(1, len(word)):
	lastword = lastword + word[i]
print(lastword)


s = str(input())
m = s[0]
print(m.capitalize() + s[1:])


a = input()
b = a.replace(a[0], a[0].upper(), 1)
print(b)


s = input()
if s[0].islower:
	print(s[0].upper() + s[1:])
else:
	print(s)


word = str(input())
ans = word[0].upper() + word[1:]
print(ans)


p = input()
print('{0}{1}'.format(p[0].capitalize(), p[1:]))


string = input()
b = []
for i in range(len(string)):
	if i == 0:
		a = string[0].upper()
	else:
		b.append(string[i])
c = list(a)
c.extend(b)
sum = ''.join(c)
print(sum)


a = list(input())
a[0] = a[0].upper()
tr1 = ''.join(a)
print(tr1)


s = input()
c = [i for i in s]
c[0] = c[0].upper()
p = ''.join(c)
print(p)


a = input()
a = list(a)
d = a[0]
d = ord(d)
if d >= 97:
	d = d - 32
	a[0] = chr(d)
str = ''
for i in range(len(a)):
	str = str + a[i]
print(str)


k = list(input())
k[0] = k[0].capitalize()
print(''.join(k))


word = list(input())
n = len(word)
a = word[0].upper()
Word = list((word[i] for i in range(1, n)))
print(a + ''.join(Word))


a = input()
c = a.upper()
print(c[:1] + a[1:])


class Code:

	def __init__(self):
		self.s = input()

	def process(self):
		print(self.s[0].upper() + self.s[1:])
code = Code()
code.process()


n = input()
g = n[0]
f = g.upper() + n[1:]
print(f)


s = input()
l = []
for i in s:
	l.append(i)
l[0] = l[0].upper()
a = ''
a = a.join(l[0:])
print(a)


n = input()
k = n.capitalize()
print(k[0] + n[1:])


s = input()
abc = 'qazxswedcvfrtgbnhyujmkiolp'
if s[0] in abc:
	s = chr(ord(s[0]) - 32) + s[1:]
print(s)


masukan = input()
masukanl = []
for i in masukan:
	masukanl = masukanl + [i]
x = masukanl[0].upper()
masukanl[0] = x
for i in masukanl:
	print(i, end='')


word = input()
for i in range(len(word)):
	if i == 0 and ord(word[i]) >= 97:
		print(chr(ord(word[i]) - 32), end='')
	else:
		print(word[i], end='')


s = input().strip()
print(s.replace(s[0], s[0].upper(), 1))


a = input()
e = a[0]
s = e.isupper()
if s == False:
	e = e.upper()
	print(e + a[1:len(a)])
else:
	print(a)


line = input()
char = line[0]
alphabet = 'abcdefghijklmnopqrstuvwxyz'
Alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
if char in alphabet:
	index = alphabet.index(char)
	char = Alphabet[index]
print(char + line[1:])


string = input()
first = string[0].upper()
size = len(string)
for i in range(1, size):
	first = first + string[i]
print(first)


x = input()
if len(x) > 1:
	y = x[0].upper() + x[1:]
	print(y)
else:
	x = x.upper()
	print(x)


lowercase = ['q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p', 'a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'z', 'x', 'c', 'v', 'b', 'n', 'm']
uppercase = ['Q', 'W', 'E', 'R', 'T', 'Y', 'U', 'I', 'O', 'P', 'A', 'S', 'D', 'F', 'G', 'H', 'J', 'K', 'L', 'Z', 'X', 'C', 'V', 'B', 'N', 'M']
word = input()
index = 0
ch = ''
index2 = 1
while index < len(lowercase):
	if word[0] == lowercase[index] or word[0] == uppercase[index]:
		ch = uppercase[index]
		while True:
			try:
				ch = ch + word[index2]
				index2 += 1
			except:
				print(ch)
				break
	index += 1


n = str(input())
print(n[0].upper() + n[1:])


x = input()
c = x[0].upper() + x[1:len(x)]
print(c)


word = input()
capWord = word[0].upper() + word[1:]
print(capWord)


a = input()
s = a[0].title()
for i in range(1, len(a)):
	s += a[i]
print(s)


inp = input().strip()
cw = inp[:1]
rem = inp[1:len(inp) + 1]
concw = cw.capitalize()
output = concw + rem
print(output)


kata = input()
x = len(kata)
arr = []
for i in range(x):
	arr.append(kata[i])
if arr[0] in 'ABCDEFGHIJKLMNOPQRSTUVWXYZ':
	print(kata)
else:
	arr[0] = ord(arr[0]) - 32
	arr[0] = chr(arr[0])
	print(''.join(arr))


s = input()
temp = s[0]
s = s.replace(temp, temp.title(), 1)
print(s)


s = input()
res = s[0].upper() + s[1:]
x = str(res)
print(x)


name = list(input())
name[0] = name[0].upper()
for i in name:
	print(i, end='')


S = input() + '0'
print(S[0].capitalize() + S[1:-1])


import cmath
a = input()
b = a[0].upper() + a[1:]
print(str(b))


x = input()
if x[0].isupper():
	print(x)
else:
	print(x[0].upper() + x[1:])


from sys import stdout, stdin

def main():
	inpts = stdin.read()
	print(inpts[0].upper() + inpts[1:])
main()


word = input()
buildWord = ''
i = 0
while i < len(word):
	if i == 0:
		buildWord += word[i].upper()
	else:
		buildWord += word[i]
	i = i + 1
print(buildWord)


s = list(input())
if ord(s[0]) >= 97 and ord(s[0]) <= 122:
	s[0] = chr(ord(s[0]) - 32)
print(''.join(s))


string = input()
list1 = list(string)
first = ''.join(map(str, list1[0]))
list1[0] = first.capitalize()
print(''.join(map(str, list1)))


s = input()
if len(s) > 1:
	print(s[0].upper() + s[1:])
elif len(s) == 1:
	print(s[0].upper())


n = list(input())
m = n[0].upper()
n.pop(0)
n.insert(0, m)
print(''.join(n))


x = input()
print(x[:1].upper() + x[1:])


a = input()
b = a[0].upper() + a[1:]
print(b, end='')


n = input()
out = n[0].upper()
print(out + n[1:])


s = str(input())
print('%s%s' % (s[0].upper(), s[1:]))


strr = input()
strr_f = strr[1:]
rock = strr[0].upper()
print(rock + strr_f)


def Convert(string):
	list1 = []
	list1[:0] = string
	return list1
s = str(input())
l = Convert(s)
dum = str(l.pop(0))
dum = dum.upper()
print(dum, end='')
for i in l:
	print(i, end='')


s = input()
new_s = s[0].capitalize()
new_s += s[1:]
print(new_s)


word = input()
chars = [char for char in word]
chars[0] = chars[0].upper()
print(''.join(chars))


sentence = input()
if ord(sentence[0]) > 90:
	sentence = chr(ord(sentence[0]) - 32) + sentence[1:]
print(sentence)


x = input()
y = ''
y = x[0].upper() + x[1::1]
print(y)


s = input()
if s[0].isupper():
	print(s)
else:
	print(s[0].upper(), s[1:], sep='')


s = input()
res = s[0].upper() + s[1:]
print(res)


from sys import stdin

def main():
	caden = stdin.readline().strip()
	while caden != '':
		cara = caden[1:]
		a = caden[0].upper()
		resp = str(a) + str(cara)
		print(resp)
		caden = stdin.readline().strip()
main()


s = input()
print(s[0].upper(), s[1:], sep='')


n = list(input())
n[0] = n[0].upper()
m = str()
for i in range(len(n)):
	m += n[i]
print(m)


s = input()
firstLetter = s[0]
firstLetter = firstLetter.capitalize()
s = firstLetter + s[1:]
print(s)


a = input()
b = a[0]
c = a[1:]
print(b.upper(), c, sep='')


a = input()
if a[0].islower():
	print(a[0].upper() + a[1:])
else:
	print(a)


a = input()
print(a[:1].upper() + a[1:])


str1 = input()
print(f'{str1[0].upper()}{str1[1:]}')


def capital(s):
	k = s[0]
	s = s[1:]
	k = k.capitalize()
	return k + s
print(capital(input()))


st = input()
print(st[0].upper() + st[1:])


a = list(input())
print(a[0].upper() + ''.join(a[1:]))


parola = input()
a = parola[0]
b = parola[1:]
print(a.upper() + b)


name = input()
newword = name[0].upper() + name[1:len(name)]
print(newword)


a = list(input())
ans = a[0].upper()
for i in range(1, len(a)):
	ans += a[i]
print(ans)


s = input().strip()
if ord(s[0]) >= 97 and ord(s[0]) <= 122:
	s = chr(65 + (ord(s[0]) - 97)) + s[1:]
print(s)


word = input()
print(word[:1].upper() + word[1:])


s = input()
a = s[0]
print(a.title() + s[1:])


s = input()
result = ''
for i in range(len(s)):
	if i == 0:
		temp = str.upper(s[i])
	else:
		temp = s[i]
	result = result.__add__(temp)
print(result)


def watermelon():
	w = int(input())
	if w % 2 == 0:
		print('YES')
	else:
		print('NO')

def way_too_long_words():
	n = int(input())
	words = [input() for x in range(n)]
	for word in words:
		if len(word) > 10:
			print(f'{word[0]}{len(word) - 2}{word[-1]}')
		else:
			print(word)

def team():
	n = int(input())
	v = [[int(x) for x in input().split()] for i in range(n)]
	o = 0
	for l in v:
		if l.count(1) >= 2:
			o += 1
	print(o)

def next_round():
	(n, k) = map(int, input().split())
	s = [int(x) for x in input().split()]
	o = 0
	i = s[k - 1]
	for j in s:
		if j >= i and j != 0:
			o += 1
	print(o)

def domino_piling():
	import math
	(m, n) = map(int, input().split())
	o = 0
	if m * n < 2:
		print(0)
		exit()
	if m % 2 == 0:
		o = m * n / 2
	elif n % 2 == 0:
		o = m * n / 2
	else:
		o = math.floor(m * n / 2)
	print(int(o))

def bitplusplus():
	n = int(input())
	s = [input() for i in range(n)]
	o = 0
	for j in s:
		if '++' in j:
			o += 1
		if '--' in j:
			o -= 1
	print(o)

def petya_and_strings():
	a = input().lower()
	b = input().lower()
	c = [a, b]
	c.sort()
	if a == b:
		print(0)
	elif b == c[0]:
		print(1)
	elif a == c[0]:
		print(-1)

def beautiful_matrix():
	for i in range(5):
		r = [int(x) for x in input().split()]
		if 1 in r:
			xmove = abs(r.index(1) - 2)
			ymove = abs(i - 2)
			o = xmove + ymove
	print(o)

def helpful_maths():
	s = input().split('+')
	s.sort()
	s = '+'.join(s)
	print(s)

def word_capitalization():
	a = input()
	a = a[0].upper() + a[1:]
	print(a)
word_capitalization()


n = input()
if ord(n[0]) < 97:
	print(n)
else:
	print(chr(ord(n[0]) - 32) + n[1:])


word = input()
list1 = []
for letter in word:
	list1.append(letter)
list1[0] = list1[0].upper()
print(''.join(list1))


string = str(input())
charr = string[0]
aa = charr.capitalize()
jawab = aa + string[1:]
print(jawab)


text = input()
result = text[0].upper() + text[1:]
print(result)


n = str(input())
firstletter = n[0]
rest = n[1:]
if firstletter.islower:
	m = firstletter.upper()
	print(str(m) + rest)
elif firstletter.isupper():
	print(n)


def CONVERT(s):
	X = ''
	for i in s:
		X += i
	return X
X = list(input())
X[0] = X[0].upper()
print(CONVERT(X))


inp = input()
print(inp[0].upper(), inp[1:len(inp)], sep='', end='\n')


word = list(input())
word[0] = word[0].upper()
print(''.join(word))


x = input()
st = x[0].upper()
k = len(x)
for i in range(1, k):
	st = st + x[i]
print(st)


word = input()
charAtFirst = word[0]
print(charAtFirst.upper() + word[1:])


stry = input()
res = ''
res += stry[0].upper()
res += stry[1:]
print(res)


s = input()
a = s[0].upper()
s2 = ''
for i in range(1, len(s)):
	s2 += s[i]
print(a + s2)


s = str(input(''))
s1 = s[0].capitalize()
print(s1 + s[1:])


name = str(input())
l = list(name)
l[0] = l[0].capitalize()
line = ''.join(l)
print(line)


l = input()
if l[0] == l[0].upper():
	print(l)
else:
	l = l[0].upper() + l[1:]
	print(l)


def capitalize(word):
	wordlist = list(word)
	wordfin = ''
	wordlist.insert(0, wordlist[0].upper())
	wordlist.pop(1)
	print(wordfin.join(wordlist))
word = input()
capitalize(word)


a = input()
print('{}{}'.format(a[0].upper(), a[1:]))


def capitalize(word):
	return word[0].capitalize() + word[1:]
w = input()
print(capitalize(w))


str1 = input()
list1 = list(str1)
list1[0] = list1[0].upper()
print(''.join(list1))


a = input('')
small_alph = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
large_alph = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']
num = None
check = False
for i in range(0, len(small_alph)):
	if small_alph[i] == a[0]:
		num = large_alph[i]
		check = True
		break
if check == True:
	result = num + a[1:len(a)]
	print(result)
else:
	print(a)


def solve(*, word: str) -> str:
	return str.upper(word[0]) + word[1:]
word = input()
result = solve(word=word)
print(result)


s = input()
S = s[0].upper()
print(S + s[1:])


s = input()
r = ''
if ord(s[0]) >= 65 and ord(s[0]) <= 90:
	print(s)
else:
	r = r + chr(ord(s[0]) - 32) + s[1:]
	print(r)


word = input()
word1 = word[0].upper()
result = ''
result += word1
for i in range(1, len(word)):
	result += word[i]
print(result)


word = input()
wordlist = list(word)
wordlist[0] = wordlist[0].upper()
output = ''.join(wordlist)
print(output)


l = input()
a = len(l)
c = []
d = ''
for x in range(a):
	if x == 0:
		b = l[x].upper()
		c.append(b)
	else:
		b = l[x]
		c.append(b)
for x in range(a):
	d = d + c[x]
print(d)


s = input()
if s[0].isupper():
	print(s)
else:
	u = s[0].upper() + s[1:]
	print(u)


s = input()
new = s[0].upper()
new += s[1:]
print(new)


a = input()
t = a[0]
t = t.upper()
print(t + a[1:])


parola = input()
lettera = parola[0]
resto = parola[1:]
x = lettera.upper()
print(x + resto)


a = input()
c = a.upper()[0]
c += a.replace(a[0], '', 1)
print(c)


m = input()
print(m[:1].upper() + m[1:])


word = input()
word1 = []
for i in range(len(word)):
	if i == 0:
		j = word[i].upper()
		word1.append(j)
	else:
		word1.append(word[i])
print(''.join(word1))


def sliceindex(x):
	i = 0
	for c in x:
		if c.isalpha():
			i = i + 1
			return i
		i = i + 1

def upperfirst(x):
	i = sliceindex(x)
	return x[:i].upper() + x[i:]
x = input()
y = upperfirst(x)
print(y)


n = input()
m = n[0].upper()
print(m + n[1:])


def capitalize(string):
	if string[0].isupper():
		return string
	return string[0].upper() + string[1:]
s = input()
print(capitalize(s))


n = input()
p = n[0]
p = p.capitalize()
p += n[1:]
print(p)


word = input()
if len(word) > 0 and word[0].islower():
	print(word[0].upper() + word[1:])
else:
	print(word)


from sys import stdin
s = stdin.readline()
print(s[0].upper() + s[1:])


s = input()
print(s[:1].upper() + s[1:])


l = input()
print(l[0].upper() + l[1:len(l)])


s = input()
if ord(s[0]) <= 90:
	print(s)
else:
	snew = chr(ord(s[0]) - 32) + s[1:]
	print(snew)


print(''.join((x.upper() if i == 0 else x for (i, x) in enumerate(input()))))


lst = []
s = ''
n = input()
s = n[0]
s = s.upper()
s += n[1:]
print(s)


s = input()
k = [letter for letter in s]
k[0] = k[0].upper()
print(''.join(k))


a = input()
print(a[0].capitalize(), end='')
for i in range(1, len(a)):
	print(a[i], end='')


s = input()
val = s[0].upper() + s[1:]
print(val)


n = input()
first = n[0]
n = n.replace(first, first.upper(), 1)
print(n)


n = input()
print(n[0].upper(), end='')
print(n[1:])


s = input()
string = [char for char in s]
string[0] = string[0].upper()
print(''.join(string))


def parser():
	while 1:
		data = list(input().split(' '))
		for number in data:
			if len(number) > 0:
				yield number
input_parser = parser()

def get_word():
	global input_parser
	return next(input_parser)

def get_number():
	data = get_word()
	try:
		return int(data)
	except ValueError:
		return float(data)
import string
word = get_word()
word = word[0].upper() + word[1:]
print(word)


in_string = input()
out_string = in_string[0].upper() + in_string[1:]
print(out_string)


s = input()
l = list(s)
if ord(l[0]) >= 97:
	l[0] = chr(ord(l[0]) - 32)
S = ''.join(l)
print(S)


s = input()
snew = s.capitalize()
print(snew[0] + s[1:])


s = input()
c = s[0].upper()
print(c + s[1:])


print((lambda x: x[0].upper() + x[1:])(input()))


n = list(input())
a = n[0].upper()
n.remove(n[0])
for i in n:
	a += i
print(a)


s = str(input())
n = len(s)
s = s[0].capitalize() + s[1:n]
print(s)


s = input()
x = s[0].upper()
for i in range(1, len(s)):
	x += s[i]
print(x)


a = input()
b = ''
b = b + a[1:]
a = a.title()
b = a[0] + b
print(b)


N = input()
print(N[0].upper() + N[1:])


n = input()
a = ''
if n[0].isupper():
	print(n)
else:
	a = n[0].upper() + n[1:]
	print(a)


a = str(input())
b = len(a)
for i in range(0, b):
	if i == 0:
		print(a[0].upper(), end='')
	else:
		print(a[i], end='')


n = input()
print(n[0].upper() + n[1:len(n)])


word = input()
word0 = word[0].upper()
word1 = list(word)
word2 = word1[1:]
print(word0 + ''.join(word2))


s = input()
ans = ''
ans += s[0].upper()
ans += s[1:]
print(ans)


z = input()
print(z[0].capitalize() + z[1:])


s = input()
ss = s[1:]
ss = s[0].upper() + ss
print(ss)


cadena = input()
cadena2 = cadena[0]
cadena2 = cadena2.upper()
print(cadena2 + cadena[1:])


from sys import stdin
input = stdin.readline
a = input()
print(a[0].upper() + a[1:])


s = input()
if 97 <= ord(s[0]) <= 122:
	x = chr(ord(s[0]) - 32)
else:
	x = s[0]
print(x + s[1:])


n = input()
m = n.split()
s = []
for j in m:
	title_word = j[0].upper() + j[1:]
	s.append(title_word)
print(''.join(title_word))


eingabe = input()
print(eingabe[0].upper() + eingabe[1:])


s = input()
print(s if s[0].isupper() else s[0].upper() + s[1:len(s)])


words = list(input())
words[0] = words[0].title()
print(''.join(words))


word = input()
n = len(word)
c1 = word[0]
c2 = word[1:n]
c1 = c1.upper()
Word = c1 + c2
print(Word)


name = input()
x = name[0].upper() + name[1:]
print(x)


def main():
	expression = input()
	expression = list(expression)
	if ord(expression[0]) > 96 and ord(expression[0]) < 123:
		expression[0] = expression[0].upper()
	expression = ''.join(expression)
	print(expression)
main()


n = input()
m = n[0].capitalize()
print(m + n[1:])


wrd = input()
a = ord(wrd[0])
if a >= 65 and a <= 90:
	print(wrd)
else:
	s = chr(a - 32)
	print(s + wrd[1:])


s = input()
k = s[0].capitalize()
l = list(s)
l.pop(0)
l.insert(0, k)
p = ''.join(l)
print(p)


n = input()
r = n[0:1]
toda = r.upper() + n[1:len(n)]
print(toda)


x = input()
a = []
for i in range(len(x)):
	a += [x[i]]
a[0] = a[0].upper()
for i in a:
	print(i, end='')


def sol(s):
	return s[0].upper() + s[1:]
s = input()
print(sol(s))


s1 = input()
s2 = s1[0].upper()
for i in range(1, len(s1)):
	s2 = s2 + s1[i]
print(s2)


def convert(s):
	str1 = ''
	return str1.join(s)
word = input()
lst = list(word)
if lst[0].islower:
	lst[0] = lst[0].upper()
print(convert(lst))


line = input()
print(line[0].upper() + line[1:])


def solve():
	string = list(input())
	string[0] = string[0].upper()
	print(''.join(string))
solve()


inp = input()
rest = inp.split(inp[0], 1)[1]
print(f'{inp[0].upper()}{rest}')


string_input = input()
string_input = string_input[0].upper() + string_input[1:]
print(string_input)


a = input()
b = a[0]
b = b.upper()
for i in range(1, len(a)):
	b = b + a[i]
print(b)


def capitalism(string):
	first = string[0].upper()
	editedString = string[1:]
	first.upper()
	finalString = first + editedString
	return finalString
string = str(input())
final = capitalism(string)
print(final)


s = input()
arr = list(s)
arr[0] = arr[0].upper()
print(''.join(arr))


a = input()
print(a[0].capitalize(), a[1:], sep='')


a = input()
if ord(a[0]) > 96:
	a = list(a)
	a[0] = chr(ord(a[0]) - 32)
for i in a:
	print(i, end='')


text = input('')
text_arr = []
count = 0
for l in text:
	if count == 0:
		text_arr.append(l.upper())
	else:
		text_arr.append(l)
	count += 1
print(''.join(text_arr))


str = input('')
cap = str[0]
cap = cap.upper()
print(cap + str[1:])


def WordCapitalization(string):
	n = string[0]
	v = n.capitalize()
	u = string[1:]
	return v + u
string = input()
print(WordCapitalization(string))


word = input()
output = word[0].upper()
index = 1
result = ''
while index < len(word):
	result = result + word[index]
	index = index + 1
print(output + result)


array_str = list(input())
array_str[0] = array_str[0].upper()
print(''.join(array_str))


s = input()
s1 = s[1:]
s = s[0].upper()
print(s + s1)


inp = input()
lst = list(inp)
lst[0] = lst[0].upper()
res = ''.join(map(str, lst))
print(res)


str = input()
l = len(str)
print(str[0].upper(), end='')
for j in range(1, l):
	print(str[j], end='')


name = input()
if len(name) > 0 and name[0].islower():
	print(name[0].upper() + name[1:])
else:
	print(name)


a = input()
b = a.capitalize()
l = len(a)
ans = []
ans.append(b[0])
for i in range(1, l):
	ans.append(a[i])
p = ''.join(ans)
print(p)


a = input('')
print(str(a[0].upper()) + a[1:])


t = input()
print(t[:1].upper(), end='')
print(t[1:])


from sys import stdin, stdout
s = stdin.readline().strip()
stdout.write(s[0].capitalize() + s[1:])


a = input()
a = list(a)
if a[0].isupper() == False:
	a[0] = a[0].upper()
print(''.join(a))


def word_cap():
	string = input()
	s = string[0].upper() + string[1:]
	return s
print(word_cap())


a = input()
k = a[0]
a = a[1:]
k = k.upper()
print(k + a)


s = input()
x = s[0]
s1 = s[1:]
print(x.capitalize() + s1)


n = input()
if len(n) == 0:
	print()
else:
	print(n[0].upper() + n[1:])


t = input()
n = len(t)
if n > 0 and t[0].islower():
	print(t[0].upper() + t[1:])
else:
	print(t)


word = input()
char = word[0].upper()
lastword = char + word[1:]
print(lastword)


a = list(input())
a[0] = a[0].upper()
s = ''
for i in range(len(a)):
	s += a[i]
print(s)


a = input()
b = a[0]
c = []
if b.isupper() == False:
	b = b.upper()
	c.append(b)
	for i in range(len(a) - 1):
		c.append(a[i + 1])
	for t in c:
		print(t, end='')
else:
	print(a)


w = input()
w = list(w)
w[0] = w[0].upper()
w = ''.join(w)
print(w)


str = input()
print(str[0].upper(), str[1:], sep='')


wordl = list(input())
l1 = wordl.pop(0).upper()
wordl.insert(0, l1)
word = ''.join(wordl)
print(word)


s = input()
print(s if len(s) == 0 or s[0].lower == s[0] else s[0].upper() + s[1:])


def capital():
	a = input()
	if a[0].islower():
		a = a[0].capitalize() + a[1:]
	print(a)
capital()


str1 = input()
lst = list(str1)
if lst[0].isupper():
	print(str1)
else:
	print(str1.replace(lst[0], lst[0].upper(), 1))


input_str = input()
print(input_str[0].upper() + input_str[1:])


import sys
import math
import re
import io

def main():
	s = input()
	print(s[0].upper() + s[1:])
main()


s = input()

def cap(s):
	letters = [x for x in s]
	letters[0] = letters[0].capitalize()
	x = ''.join(letters)
	return x
print(cap(s))


s = input()
a = []
for i in s:
	a.append(ord(i))
for i in range(len(s)):
	if i == 0:
		if a[i] >= 97 and a[i] <= 122:
			print(chr(a[i] - 32), end='')
		else:
			print(chr(a[i]), end='')
	else:
		print(chr(a[i]), end='')
print('')


S = input()
ans = list(S)
ans[0] = ans[0].upper()
print(''.join(ans))


inp = str(input())
print(inp[0].upper() + inp[1:])


s = input()
if s[0].isupper():
	print(s)
else:
	print(chr(ord(s[0]) + ord('A') - ord('a')) + s[1:])


f = lambda s: s[0].upper() + s[1:]
print(f(input()))


s = input()
x = s[0]
t = ''
x = s[0].upper()
t = x + s[1:]
print(t)


a = input()
a = list(a)
a[0] = a[0].capitalize()
for i in a:
	print(i, end='')


import re
string = input()
pattern = re.compile('^([a-z])')
print(pattern.sub(lambda pat: pat.group(1).upper(), string))


def WordCap():
	word = input('')
	return word[0].upper() + word[1:]
print(WordCap())


n = list(input())
s = n[0].upper()
n.remove(n[0])
for i in n:
	s += i
print(s)


x = input()
f = x[0]
f = f.upper()
s = x[1:]
print(f + s)


W = input()
R = ''
if W[0].islower():
	R += W[0].upper() + W[1:]
	print(R)
else:
	print(W)


s = input()
if len(s) == 1:
	print(s.upper())
else:
	b = s[0].upper()
	print(b + s[1:-1] + s[-1])


inp = input()
if len(inp) <= 1000:
	up = inp[0].upper()
	print(up + inp[1:])
else:
	print('Range exceeded!')


import re
a = input()
b = a[0]
c = b.upper()
d = re.sub(a[0], c, a, 1)
print(d)


word = input()
print(f'{word[0].upper()}{word[1:]}')


word = str(input())
firstLetter = word[0].capitalize()
print(firstLetter + word[1:])


C = input()
N = ''
k = 0
while k < len(C):
	if k == 0:
		r = C[k].islower()
		if r == True:
			r = C[k].upper()
			N = N + r
			k = k + 1
		else:
			N = N + C[k]
			k = k + 1
	else:
		N = N + C[k]
		k = k + 1
print(N)


word = str(input())
first_char = word[0]
print(word.replace(word[0], first_char.upper(), 1))


s = input()
print(s[0].upper(), end='')
print(s[1:])


from sys import stdin, stdout
string = stdin.readline().strip()
if string[0].isupper():
	stdout.write(string)
else:
	new_string = string[0].upper() + string[1:]
	stdout.write(new_string)


w = input()
print(f'{w[0].capitalize()}{w[1:]}')


x = str(input())
ans = x[0].upper() + x[1:]
print(ans)


x = input()
k = x[0]
l = x[1:]
z = k.capitalize()
print(z + l)


str = input()
c = str[0]
if ord(c) > 96:
	c = chr(ord(c) - 32)
print(c, end='')
for i in range(1, len(str)):
	print(str[i], end='')


word = str(input())
long = len(word)
list1 = list()
first = word[0].upper()
list1.append(first)
for i in range(1, long):
	list1.append(word[i])
print(''.join(list1))


s = input()
li = list(s)
li[0] = li[0].upper()
print(''.join(li))


s = input()
d = s[0].upper()
d = d[0] + s[1:]
print(d)


capital = str(input())
x = capital[0].upper()
print(x + capital[1:])


string = input()
print(string if ord(string[0]) < 97 else chr(ord(string[0]) - 32) + string[1:])


s = input()
x = s[0]
if x.isupper() == 'True':
	print(s)
else:
	z = x.upper()
	y = s[1:]
	print(z + y)


def fun():
	s = input()
	print(s[0].upper() + s[1:])
fun()


s = input()
s = list(s)
for i in range(len(s)):
	if 'a' <= s[i] <= 'z':
		s[i] = s[i].upper()
		break
	break
s = ''.join(s)
print(s)


a = input()
first = a[0]
b = first.upper()
print(b + a[1:])


n = input()
w = n.capitalize()[0]
print(w + n[1:])


a = input()
if len(a) == 1:
	print(a.upper())
else:
	b = a[0].upper()
	print(b + a[1:-1] + a[-1])


s = input('')
for i in range(len(s)):
	if i == 0:
		print(s[i].capitalize(), end='')
	else:
		print(s[i], end='')


string = input()
stringtitle = string.capitalize()
print(stringtitle[0] + string[1:])


x = [l for l in input()]
y = 'QWERTYUIOPASDFGHJKLZXCVBNM'
z = 'qwertyuiopasdfghjklzxcvbnm'
if x[0] in z:
	x[0] = y[z.index(x[0])]
print(''.join(x))


aa = input()
val = None
li = list()
for v in aa:
	li.append(v)
li[0] = li[0].capitalize()
for v in li:
	if val == None:
		val = v
	else:
		val = val + v
print(val)


def main():
	word = input()
	print(word[0].upper() + word[1:])
main()


s = input()
l = list(s)
if l[0].isupper():
	print(s)
else:
	s2 = l[0].upper()
	print(s2 + s[1:])


strA = input()
print(strA[0].upper() + strA[1:])


word = input()
if word[0].islower():
	string1 = word[0]
	print(string1.upper() + word[1:])
else:
	print(word)


string = list(input())
string[0] = string[0].upper()
print(''.join(string))


ip = input()
if ip[0].islower():
	print(ip[0].upper() + ip[1:])
else:
	print(ip)


myString = input()
newString = '%s%s' % (myString[0].upper(), myString[1:])
print(newString)


s = input()
a = list(s)
for i in range(len(a)):
	if i == 0:
		t = str(a[i])
		print(t.upper(), end='')
	else:
		print(a[i], end='')


s = input()
if len(s) <= 1000:
	if s[0].islower():
		print(s[0].upper() + s[1:])
	else:
		print(s)


arr = list(input())
if 96 < ord(arr[0]) < 123:
	arr[0] = chr(ord(arr[0]) - 32)
print(''.join(arr))


n = input()
t = len(n)
if t > 1:
	n1 = n[0].upper()
	n2 = n[1:-1]
	n1 += n2
	n3 = n[-1]
	n1 += n3
	print(n1)
else:
	n1 = n[0].upper()
	print(n1)


n = input()
if n[0].isupper():
	print(n)
else:
	l = len(n)
	print(n[0].upper(), end='')
	print(n[1:], end='')


str1 = input()
str2 = str1[0]
print(str2.upper() + str1[1:])


inp = list(input())
res = ''
for i in range(len(inp)):
	if i == 0:
		res += inp[i].upper()
	else:
		res += inp[i]
print(''.join(res))


N = input()
p = ''
for i in range(len(N)):
	if i == 0:
		p += N[i].upper()
	else:
		p += N[i]
print(p)


string = input()
print(string[0].upper(), end='')
for i in range(1, len(string)):
	print(string[i], end='')


a = list(input())
a[0] = a[0].upper()
for i in a:
	print(i, end='')
print()


a = list(input())
a[0] = a[0].upper()
print(''.join(map(str, a)))


l = list(input())
l[0] = l[0].upper()
print(''.join(l))


import sys

def main(args):
	lines = sys.stdin.readlines()
	line = lines[0].strip()
	cap_line = line[0:1].upper() + line[1:]
	print(cap_line)
main(sys.argv)


n = input()
if n[0].islower():
	print(n[0].upper() + n[1:])
else:
	print(n)


from math import *
x = input()
print(x[0].upper() + x[1:])


n = input()
t = list(n)
t[0] = t[0].upper()
print(''.join(t))


s = str(input())
a = s[0].capitalize()
print(a + s[1:])


string = input()
for x in range(len(string)):
	if x == 0:
		print(string[x].upper(), end='')
	else:
		print(string[x], end='')


s = input()
f = s[0]
f = f.upper()
w = f + s[1:]
print(w)


w = input()
print(w[0].capitalize(), w[1:], sep='')


s = list(input())
if s[0] <= 'z' and s[0] >= 'a':
	x = s[0].upper()
	s[0] = x
print(''.join(s))


y = str(input())
if y[0].isupper() == True:
	print(y)
else:
	print(y[0].upper() + y[1:])


import math
line = input()
result = line[0].upper() + line[1:]
print(result)


def main():
	sptext.pop(0)
	return first_elem.upper() + ''.join(sptext)
text = input()
sptext = list(text)
first_elem = text[0]
print(main())


s = input()
w = s[0]
w1 = w.upper()
lenn = len(s)
l = s[1:lenn]
print(w1 + l)


p = input()
print(p[0].upper() + p[1:])


s = input()
e = (s[0].upper(), s[1:])
print(''.join(e))


def solution(st):
	return st.replace(st[0], st[0].upper(), 1)
s = input()
print(solution(s))


s = input()
s1 = s.upper()
t = s1[0]
m = t + s[1:]
print(m)


x = input()
a = x[0]
b = x[1:]
print(a.upper() + b)


word = input()
l = list(word)
t = l[0].upper()
l[0] = t
for i in l:
	print(i, end='')


s = list(input())
b = ''
a = s[0].capitalize()
s.pop(0)
print(a + b.join(s))


n = input()
n = list(n)
n[0] = n[0].upper()
for i in n:
	print(i, end='')


word = input()
a = len(word)
m = []
for i in range(a):
	m.append(word[i])
m[0] = m[0].upper()
print(''.join((str(i) for i in m)))


s = input()
if ord(s[0]) > 90:
	s = chr(ord(s[0]) - (ord('a') - ord('A'))) + s[1:]
print(s)


txt = input()
print(txt[0].upper() + txt[1:])


str = input()
str1 = str[0].capitalize() + str[1:]
print(str1)


s = input()
print(s[0].upper(), end='')
for i in range(len(s) - 1):
	print(s[i + 1], end='')


def cap(s):
	f = s[0].upper()
	s = f + s[1:]
	print(s)
s = input()
cap(s)


for _ in range(1):
	n = input()
	print(n[0].upper() + n[1:])


A = input()
print(A[0].capitalize() + A[1:])


strng = str(input())
capital = strng[0]
print(capital.capitalize(), end='')
print(strng[1:])


a = list(input())
if a[0].islower():
	a[0] = a[0].upper()
print(''.join(a))


str = input()
str1 = str[0:1]
str1 = str1.upper()
str2 = str[1:]
str3 = str1 + str2
print(str3)


l = input()
if len(l) > 0 and l[0].islower():
	print(l[0].upper() + l[1:])
else:
	print(l)


string = input()
result = string[0].upper()
result += string[1:]
print(result)


wor = input()
if wor[0].isupper():
	print(wor)
else:
	print(wor[0].upper() + wor[1:])


n = str(input())
L = list(n)
a = L[0].upper()
L[0] = a
m = ''.join(L)
print(m)


x = str(input())
print(x[0].capitalize(), end='')
print(x[1:])


a = input()
if ord(a[0]) > 96 and ord(a[0]) < 124:
	s = chr(ord(a[0]) - 32) + a[1:]
	print(s)
else:
	print(a)


word = input()
s = ''.join((word[0].upper() + word[1:] for word in word.split()))
print(s)


w = input()
print(str(w[0].upper()) + w[1:len(w)])


n = input()
print(n[0].upper(), n[1:], sep='')


c = str(input())
c = list(c)
if ord(c[0]) > ord('Z'):
	c[0] = chr(ord(c[0]) - (ord('z') - ord('Z')))
v = ''.join(c)
print(v)


a = input()
if 97 <= ord(a[0]):
	n = ord(a[0]) - (ord('a') - ord('A'))
else:
	n = ord(a[0])
print(chr(n) + a[1:])


string = list(str(input()))
i = 0
newString = []
cappedLetter = str(string[0].upper())
string.insert(0, cappedLetter)
string.pop(1)
for letter in string:
	newString.append(string[i])
	i += 1
newString = ''.join(newString)
print(newString)


word = str(input())
new_word = word[1:]
given_letter = str(word[0])
final_letter = given_letter.upper()
final_word = final_letter + new_word
print(final_word)


x = str(input())
first = x[0]
first = first.upper()
print(first + x[1:])


def upperfirst(name):
	return name[0].upper() + name[1:]
name = input()
Name = upperfirst(name)
print(Name)


input_word = input()
output_word = input_word[0].upper()
output_word += input_word[1:]
print(output_word)


name1 = input()
print(name1[0].upper() + name1[1:])


data = input()
first = data[0].upper()
other = data[1:len(data)]
print(first + other)


str = input()
c = str[0].upper()
print(c + str[1:])


s = input()
a = [None] * len(s)
a[0] = s[0].upper()
for i in range(1, len(s)):
	a[i] = s[i]
str1 = ''.join(a)
print(str1)


s = input()
if 65 <= ord(s[0]) <= 90:
	print(s)
else:
	print(str(s[0].capitalize()) + s[1:])


s = list(input())
f = s.pop(0)
print(f.upper(), end='')
for i in s:
	print(i, end='')


def get_values():
	inp = input()
	if len(inp) < 1 or len(inp) > 10 ** 3:
		return
	string = ''
	chars = list(inp)
	for i in range(len(chars)):
		if i == 0:
			string += chars[i].upper()
		else:
			string += chars[i]
	return print(string)
get_values()


n = list(input())
n[0] = n[0].upper()
n1 = ''
for i in n:
	n1 += i
print(n1)


s = input()
print(s) if 'A' <= s[0] <= 'Z' else print(chr(ord(s[0]) - 32) + s[1:])


word = input()
type(word)
s = list(word)
if ord(s[0]) >= 97:
	s[0] = chr(ord(s[0]) - 32)
print(''.join(s))


entrada = input()
print(entrada[0].upper() + entrada[1:])


def input_int():
	list(map(int, input().strip().split()))

def main():
	s = input().strip()
	string = ''
	if ord(s[0]) - 97 >= 0 and ord(s[0]) - 97 <= 25:
		string += chr(ord(s[0]) - 32)
	else:
		string += s[0]
	for i in range(1, len(s)):
		string += s[i]
	print(string)
main()


word = input()
word2 = word[0].upper() + word[1:]
print(word2)


x = input()
print(x[:1].capitalize() + x[1:])


word = input()
out = ''
letter = word[0].upper()
out = letter + word[1:]
print(out)


s = list(input())
if 97 <= ord(s[0]) <= 122:
	s[0] = s[0].upper()
s = ''.join(s)
print(s)


h = input()
print(h[0].upper() + h[1:])


a = str(input())
e = len(a)
b = a[0]
c = b.upper()
print(c, end='')
d = a[1:e]
print(d)


n = input()
l = list(n)
l[0] = l[0].upper()
print(''.join(map(str, l)))


s = input()
if s[0] != s[0].upper():
	x = s[0].upper() + ''.join((str(s[i]) for i in range(1, len(s))))
	print(x)
else:
	print(s)


st = str(input())
if len(st) == 1:
	print(st.capitalize())
elif st[0] == st[0].upper():
	print(st)
else:
	print(st[0].capitalize() + st[1:])


word = input()
first = word[0]
first = first.upper()
print(first + word[1:])


def answer():
	a = input()
	(i, b) = (0, '')
	while i < len(a):
		if i:
			letter = a[i]
		else:
			letter = a[i].upper()
		b += letter
		i += 1
	return b
print(answer())


p = str(input())
m = p[:1]
if m == m.capitalize():
	print(p)
else:
	m = m.capitalize()
	r = m + p[1:]
	print(r)


data = input()
print(data[0].capitalize() + data[1:])


s1 = input()
s2 = s1[0].upper() + s1[1:]
print(s2)


import sys
input = sys.stdin.readline

def instring():
	return str(input())
word = instring().rstrip()
first = word[0].upper()
other = word[1:]
print(first + other)


def find(s):
	x = s[0].upper()
	x = x + s[1:]
	print(x)
s = input()
find(s)


ch = input()
print(ch[0].upper() + ch[1:])


string = input()
print(string[:1].upper() + string[1:])


txt = str(input())
x = txt[0].capitalize() + txt[1:]
print(x)


a = input()
a_first = a[0]
a_first = a_first.capitalize()
print(a_first + a[1:])


from sys import stdin
n = stdin.readline().strip()
if n[0] == n[0].upper():
	print(n)
else:
	print(n[0].upper() + n[1:])


import sys
try:
	sys.stdin = open('inputs.txt', 'r')
	sys.stdout = open('output.txt', 'w')
except:
	pass
finally:
	input = sys.stdin.readline
	print = sys.stdout.write
word = list(input())
word[0] = word[0].upper()
print(''.join(word))


p = list(input())
sep = ''
p[0] = p[0].upper()
p = sep.join(p)
print(p)
h = []
s = 0


x = str(input())
z = ''
if x[0].isupper():
	z = x
	print(z)
else:
	print(x[0].upper() + x[1:])


s = input()
if len(s) < 1000:
	print(s[0].upper() + s[1:])


import re
s = input()
s = re.sub('([a-zA-Z])', lambda x: x.groups()[0].upper(), s, 1)
print(s)


expr = input()
out = str.capitalize(expr[0]) + expr[1:]
print(out)


n = input()
n = list(n)
n[0] = n[0].upper()
lt = ''.join(n)
print(lt)


a = str(input())
b = a[0:1].upper()
c = a[1:]
print(b + c)


a = str(input())
if ord(a[0]) >= 97:
	a = chr(ord(a[0]) - 32) + a[1:]
	print(a)
else:
	print(a)


cha = input()
aim = cha[0].upper()
seq = [aim]
for i in range(1, len(cha)):
	seq.append(cha[i])
print(''.join(seq))


z = input()
print(z[0].upper() + z[1:])


s = input()
if ord(s[0]) >= ord('a'):
	s = list(s)
	s[0] = chr(ord(s[0]) - ord('a') + ord('A'))
	s = ''.join(s)
print(s)


from sys import stdin, stdout

def main():
	inp = stdin.readline()
	out = inp[0].upper() + inp[1:]
	stdout.write(out)
main()


s = input()
main_s = ''
first_char = s[0].upper()
main_s += first_char
main_s += s[1:]
print(main_s)


A = input()
N = len(A)
if 'a' <= A[0] <= 'z':
	print(A[0].upper() + A[1:N])
else:
	print(A)


s = input()
mark = s[0]
s = s[1:len(s)]
print(mark.upper(), s, sep='')


word = list(input())
if ord(word[0]) >= 97:
	word[0] = word[0].upper()
print(''.join(word))


arr = [a for a in input()]
if 97 <= ord(arr[0]) <= 122:
	arr[0] = chr(ord(arr[0]) - 32)
s = ''
for x in arr:
	s += x
print(s)


a = input()
first = a[0]
all_s = a[1:]
first = first.title()
print(first + all_s)


s = input()
l = list(s)
l[0] = l[0].upper()
d = ''.join(l)
print(d)


word = input()
up = word[0].title()
word2 = up + word[1:]
print(word2)


import re

def main():
	s = input()
	res = ''
	if ord(s[0]) - 90 > 0:
		res = s[0].upper() + s[1:len(s)]
		print(res)
	else:
		print(s)
main()


a = input()
b = ''
if a[0].upper == True:
	print(a)
else:
	b = a[0].upper() + a[1:]
print(b)


import string

def main():
	word = input()
	if ord(word[0]) > 64 and ord(word[0]) < 91:
		print(word)
	else:
		print(word[0].upper() + word[1:])
main()


s = str(input())
a = s[0]
b = s[1:]
a1 = a.capitalize()
print(a1 + b)


s = input()
u = ''
j = 0
for i in s:
	if j == 0 and ord(i) >= 97 and (ord(i) <= 122):
		i = chr(ord(i) - 32)
	else:
		i = i
	j += 1
	u += i
print(u)


data_string = input()
data_string = data_string[0].upper() + data_string[1:]
print(data_string)


x = input()
y = x[0].capitalize()
print(y + x[1:])


def capitalize():
	s = input().strip()
	if not s[0].isupper():
		s = s[0].upper() + s[1:]
	return s
print(capitalize())


a = str(input())
caps = a[0].upper()
final = caps + a[1:]
print(final)


in_word = input()
out_word = ''.join(in_word[:1].upper() + in_word[1:])
print(out_word)


s = input()
k = ''
k += s[0].upper()
for i in s[1:]:
	k += i
print(k)


n = input()
s = list(n)
s[0] = s[0].upper()
x = ''.join(s)
print(x)


word = input()
l = []
i = 1
l1 = len(word)
l.append(word[0].capitalize())
while i < l1:
	l.append(word[i])
	i += 1
print(''.join(l))


a = input()
b = a[0]
b = b.capitalize()
c = str()
for x in range(1, len(a)):
	c = c + a[x]
c = b + c
print(c)


d = input()
print(d[0].upper() + d[1:len(d)])


i = input()
ci = i.capitalize()
j = ci[0] + i[1:]
print(j)


n = input()
l = list(n)
l[0] = l[0].capitalize()
n = ''.join(l)
print(n)


st = str(input())
stmau = st[0].upper()
for i in range(1, len(st)):
	stmau = stmau + st[i]
print(stmau)


w = input()
if ord(w[0]) >= 97:
	print(str(chr(ord(w[0]) - 32)), end='')
else:
	print(w[0], end='')
print(w[1:])


string = input()
a = string[0]
a = a.upper()
new = a + string[1:]
print(new)


c = str(input())
while len(c) < 1000:
	if c[0].isupper():
		print(c)
		break
	else:
		b = c[0].upper() + c[1:]
		print(b)
		break


import sys
input = sys.stdin.readline
word = input()
if len(word) == 0:
	exit()
if word[0].isupper():
	print(word)
else:
	word_cap = word[0].upper() + word[1:len(word)]
	print(word_cap)


word = input()
word_result = ''
for i in range(len(word)):
	if i == 0:
		word_result += word[i].upper()
	else:
		word_result += word[i]
print(word_result)


x = str(input())
y = x[0].upper()
z = x[1:]
print(y + z)


word = str(input())
print(str(word[0].upper()) + str(word[1:int(len(word) + 1)]))


s1 = input()
S1 = s1[0].upper() + s1[1:]
print(S1)


text = input()
i = len(text)
str = ''
str = str + text[0]
str = str.capitalize()
for x in range(1, i):
	str = str + text[x]
print(str)


a = input()
print(f'{a[0].capitalize()}{a[1:]}')


a = list(str(input()))
b = str(a[0]).capitalize()
a[0] = b
print(''.join((str(i) for i in a)))


s = input()
x = len(s)
c = ord(s[0])
if c >= 97 and c <= 122:
	b = c - 32
	print(chr(b), end='')
else:
	print(s[0], end='')
for i in range(1, x):
	print(s[i], end='')


x = input()
print(x.replace(x[0], str(x[0]).upper(), 1))


str = input()
print(str[:1].upper() + str[1:])


word2 = input()
l = len(word2)
w = []
f = []
v = 0
for i in range(l):
	r = word2[i]
	w.append(r)
w22 = word2[0]
w33 = w22.upper()
w[0] = w33
for i in w:
	print(i, end='')


a = list(input())
a[0] = a[0].upper()
b = ''.join((x for x in a))
print(b)


s = input()
n = ''.join(s[0].upper())
print(n + s[1:])


n = input()
y = n[0].capitalize()
print(y + n[1:])


n = list(input())
n[0] = n[0].upper()
print(*n, sep='')


t = input()
print(t[0].capitalize() + t[1:])


s = str(input())
if s[0].isupper():
	print(s)
elif s[0].islower():
	k = s[0].upper()
	t = s[1:]
	print(k + t)


a = input()
if ord(a[0]) >= 97 and ord(a[0]) <= 122:
	b = a[0].upper()
else:
	b = a[0]
b += a[1:]
print(b)


n = input()
k = n[0].upper()
print(k + n[1:])


import sys
s = sys.stdin.readline().strip()
print(s[0].upper() + s[1:])


st = input()
li = list(st)
if not li[0].isupper():
	li[0] = li[0].upper()
st = ''.join(li)
print(st)


c = input()
f = c[0].upper() + c[1:]
print(f)


s1 = input()
l = list(s1)
x = s1[0]
y = x.upper()
l[0] = y
for i in range(len(l)):
	print(l[i], end='')


word = input()
print(word[0].upper(), end='')
print(word[1:])


str = input()
str1 = str[0]
str2 = str[1:len(str)]
print(str1.upper() + str2)


string = input()
a = string[0]
s = a.capitalize()
string = string.replace(a, s, 1)
print(string)


str = input()
str2 = ''
str3 = ''
if str[0].islower():
	str1 = str[0].upper()
	print(str1, end='')
	for i in range(1, len(str)):
		str2 = str[i]
		print(str2, end='')
else:
	print(str)


theString = input()
myList = []
for i in theString:
	myList.append(i)
myList[0] = myList[0].upper()
sampleStr = ''
theFinal = sampleStr.join(myList)
print(theFinal)


a = input()
index = 0
result = ''
while len(a) > index:
	if index == 0:
		result = a[0].upper()
	else:
		result = result + a[index]
	index = index + 1
print(result)


a = list(input())
a[0] = str.upper(a[0])
for i in range(0, len(a)):
	print(a[i], end='')


n = input()
s = n[0].capitalize()
s += n[1:]
print(s)


n = input()
des = ''
i = 0
for word in n:
	if i == 0:
		des = des + word.capitalize()
	else:
		des = des + word
	i = i + 1
print(des)


n = str(input())
k = list(n)
m = []
r = []
m.append(k[0].capitalize())
for i in range(1, len(k)):
	r.append(k[i])
m.extend(r)
for j in range(0, len(m)):
	print(m[j], end='')


a = input()
b = len(a)
a = ' '.join(a)
a = a.split()
a[0] = a[0].upper()
mensaje = a[0]
for k in range(1, b):
	mensaje = mensaje + a[k]
print(mensaje)


n = input()
n1 = n[0].upper() + n[1:]
print(n1)


def capitalizate(string):
	answer = string[0].upper() + string[1:]
	return answer
word = input()
print(capitalizate(word))


n = input()
a = ord(n[0])
if a >= 97:
	d = chr(a - 32)
	print(d + n[1:])
else:
	print(n)


p1 = input()
p1 = p1[0].upper() + p1[1:]
print(p1)


s = input()
s1 = s[:1]
s2 = s1.capitalize()
print(s2 + s[1:])


s = input()
m = s[0:1]
f = s[1:]
print(m.upper() + f)


zeile1 = input('')
z1 = zeile1[0]
ausgabe = z1.upper()
for i in range(len(zeile1)):
	if i != 0:
		ausgabe = f'{ausgabe}{zeile1[i]}'
print(ausgabe)


import math
from collections import defaultdict
from collections import Counter
import itertools

def solve(s):
	return s[0].upper() + s[1:]
s = input()
print(solve(s))


s = input()
k = ''
if ord(s[0]) >= 97 and ord(s[0]) <= 122:
	l = chr(ord(s[0]) - 32)
else:
	l = s[0]
k += l
for i in range(1, len(s)):
	k += s[i]
print(k)


d = input()
f = d[0]
f = f.upper()
w = f + d[1:]
print(w)


Text = input()
NewText = Text[0].upper()
print(NewText + Text[1:])


a = input()
if a[0].islower() == 1:
	print(a[0].upper(), end='')
else:
	print(a[0], end='')
for i in range(1, len(a)):
	print(a[i], end='')


x = input()
y = x.upper()
y = y[0]
a = str(y)
for i in range(1, len(x)):
	a += str(x[i])
print(a)


i = input()
x = i[0].upper()
print(x + i[1:])


t = input()
for i in t:
	t = t[0].upper() + t[1:]
print(t)


var = input()
print(var[0].capitalize() + var[1:len(var)])


def capitalize_word(word):
	first_letter = word[0]
	if first_letter.islower():
		print(first_letter.upper() + word[1:])
	else:
		print(word)
input_str = input()
capitalize_word(input_str)


a = input()
print(a[0].upper(), end='')
print(a[1:len(a)])


def main():
	word = input()
	newWords = word[0].capitalize()
	wordList = []
	for k in word:
		wordList.append(k)
	wordList.remove(wordList[0])
	wordList.insert(0, newWords)
	capitalizedWord = ''
	for n in wordList:
		capitalizedWord = capitalizedWord + n
	print(capitalizedWord)
main()


def wordCapitalization():
	word = input()
	print(word[0].upper() + word[1:])
wordCapitalization()


cap = input()
print(''.join((s[0].upper() + s[1:] for s in cap.split(' '))))


n = input()
if len(n) > 0 and len(n) <= 1000:
	a = list(n)
	a[0] = a[0].upper()
	x = 0
	w = ''
	while x < len(a):
		w = w + a[x]
		x = x + 1
	print(w)


import sys
input = sys.stdin.readline
name = input()
temp = ''
if ord(name[0]) >= 97:
	temp += chr(ord(name[0]) - 32)
else:
	temp += name[0]
temp += name[1:]
print(temp)


l = input()
s = ''
s += l[0].upper()
s += l[1:]
print(''.join(s))


import sys
read = []
for line in sys.stdin:
	read.append(line)
s = read[0]
print(s[0].upper() + s[1:])


st = input()
print(st[:1].upper() + st[1:])


from random import randint
from math import *
s = input()
s = s[0].upper() + s[1:]
print(s)


s = input()
print(s[0], end='') if ord(s[0]) < 97 else print(chr(ord(s[0]) - 32), end='')
print(s[1:])


a = input()
k = a[0].upper()
for i in range(1, len(a)):
	k = k + a[i]
print(k)


def capitalize(word):
	return word[0].upper() + word[1:]
print(capitalize(input()))


a = input()
b = list(a)
b[0] = b[0].upper()
print(''.join(b))


def cap(string):
	if string[0].isupper():
		return string
	else:
		string = list(string)
		string[0] = string[0].upper()
		return ''.join(string)
string = input()
print(cap(string))


i = input()
print(i.upper()[0], i[1:], sep='')


s = input()
if s[0] >= 'a' and s[0] <= 'z':
	print(s[0].upper() + s[1:])
else:
	print(s)


capital = input()
capital_final = capital.replace(capital[0], capital[0].upper(), 1)
print(capital_final)


word = str(input())
print(word[0].upper() + word[1:] if len(word) > 1 else word.upper())


from math import *
s = input()
print(s[0].upper() + s[1:len(s)])


try:
	s = input()
	x = s[:1]
	x = x.upper()
	p = x + s[1:]
	print(p)
except:
	pass


n = input()
l = []
for i in n:
	l.append(i)
a = l[0].capitalize()
l[0] = a
print(''.join(l))


line = input()
if ord(line[0]) < 123 and ord(line[0]) > 96:
	print(chr(ord(line[0]) - 32) + line[1:])
else:
	print(line)


s = list(input())
s[0] = s[0].upper()
st = ''
for i in range(len(s)):
	st = st + s[i]
print(st)


s = input()
c = s[0].upper()
a = s[1:]
print(c, a, sep='')


str1 = input()
str2 = str1.title()
print(str2[0:1] + str1[1:])


import sys
input = sys.stdin.readline

def inp():
	return int(input())

def inlt():
	return list(map(int, input().split()))

def insr():
	s = input()
	return list(s[:len(s) - 1])

def invr():
	return map(int, input().split())
s = insr()
s[0] = s[0].upper()
ans = ''.join(s)
print(ans)


S = str(input())
x = S[0].upper() + S[1:]
print(str(x))


ch = input()
if ch[0].upper() == ch[0]:
	print(ch)
else:
	ch1 = ''
	for i in range(1, len(ch)):
		ch1 = ch1 + ch[i]
	print(ch[0].upper() + ch1)


from sys import stdin
s = [x for x in stdin.readline().strip()]
if 'a' <= s[0] <= 'z':
	s[0] = chr(ord('A') + (ord(s[0]) - ord('a')))
print(''.join(s))


a = input()
x = len(a)
b = ''
y = 0
z = ''
if 0 < x <= 1000:
	b = str(a[0]).upper()
z = b + str(a[1:])
print(z)


s = input()
k = s[0]
p = k.upper()
c = []
c.append(p)
for i in range(1, len(s)):
	c.append(s[i])
for j in c:
	print(j, end='')


def main():
	uncapitalized_word = input()
	capitalized_word = uncapitalized_word[0].capitalize() + uncapitalized_word[1:len(uncapitalized_word)]
	print(capitalized_word)
main()


sen = input()
print(sen[0].upper() + sen[1:])


x = list(input())
for i in range(1):
	x[i] = x[i].upper()
print(''.join(x))


n = input()
a = n[0].capitalize()
print(a + n[1:])


s = input()
x = str.upper(s[0])
y = s[1:]
print(x + y)


word = input()
result = ''
if ord(word[0]) >= 97:
	result += chr(ord(word[0]) - 32)
	result += word[1:]
	print(result)
else:
	print(word)


s = input()
if len(s) > 0 and len(s) < 1001:
	t = s[0].upper()
	t += s[1:]
	print(t)


s = input()
if s[0] != s[0].upper():
	s = s[0].upper() + s[1:]
print(s)


n = list(input())
s = n[0].upper()
for i in range(1, len(n)):
	s += n[i]
print(s)


n = input()
print(n[0].upper(), end='')
for i in n[1:]:
	print(i, end='')


word = input()
cap = word[0]
print(word.replace(cap, cap.upper(), 1))


def capital():
	word = input()
	new_word = word[0].upper() + word[1:]
	print(new_word)
capital()


n = input()
x = []
x.append(n[0].upper())
for i in range(1, len(n)):
	x.append(n[i])
for i in x:
	print(i, end='')


ip = input()
List = list(ip)
List[0] = List[0].upper()
print(''.join(List))


x = list(map(str, input()))
if ord(x[0]) > 96:
	x[0] = chr(ord(x[0]) - 32)
print(''.join(x))


s = input()
c = s.capitalize()
print(c[0], end='', sep='')
for c in range(1, len(s)):
	print(s[c], sep='', end='')


Cadena = input()
if len(Cadena) < 2:
	print(Cadena.capitalize())
else:
	print(Cadena[0].capitalize() + Cadena[1:])


s = input()
print(s[0].upper(), end='')
if len(s) > 0:
	print(s[1:])


mass = []
string = input()
for i in string:
	mass.append(i)
mass[0] = mass[0].upper()
new_string = ''.join(mass)
print(new_string)


s = input()
a = s[0]
if ord(a) < 91:
	print(s)
else:
	a = chr(ord(a) - 32)
	s = a + s[1:]
	print(s)


s = input()
if s[0].islower():
	print(chr(ord(s[0]) - 32) + s[1:])
else:
	print(s)


s = input()
b = s[1:]
a = s[0]
print(a.upper() + b)


s = input()
a = len(s)
j = 0
for i in s:
	if j == 0:
		if ord(i) >= 97 and ord(i) <= 122:
			print(chr(ord(i) - 32), end='')
			j += 1
			continue
		else:
			print(i, end='')
			j += 1
			continue
	print(i, end='')
	j += 1
print()


n = input()
q = 0
q += 1
q += 1
q += 1
q += 1
q += 1
q += 1
q += 1
q += 1
q += 1
q += 1
q += 1
a = list(n)
a[0] = a[0].upper()
x = 0
w = ''
while x < len(a):
	w = w + a[x]
	x = x + 1
print(w)


a = str(input())
b = list(a)
b.insert(0, b[0].upper())
b.remove(b[1])
for c in b:
	print(c, end='')


s = input()
x = s[0]
x = x.upper()
u = x + s[1:]
print(u)


s = input()
arr = []
for i in s:
	arr.append(i)
arr[0] = arr[0].upper()
print(''.join(arr))


s = str(input())
if s[0] == s[0].lower():
	print(s[0].upper(), end='')
	print(s[1:])
else:
	print(s)


lista = []
world = input()
a = world[0].upper()
b = world[1:]
c = a + b
print(c)


m = input()
print(m[0].capitalize(), end='')
for i in range(1, len(m)):
	print(m[i], end='')


L = input()
L = L[0].upper() + L[1:]
print(L)


word = input()
print(''.join([word[0].upper(), word[1:]]))


sent1 = input()
sent2 = sent1[0].upper()
sent3 = sent2 + sent1[1:]
print(sent3)


mystr = input()
print(mystr[0].upper() + mystr[1:])


def main(str):
	print(str[0].upper(), end='')
	return str[1:len(str)]
str = input()
print(main(str))


s = input()[:1000]
print('' + s[0].upper() + s[1:])


word = list(input())
word[0] = word[0].upper()
print(''.join(map(str, word)))


name = input()
print(name[:1].capitalize() + name[1:])


s = str(input())
l = [word[0].upper() + word[1:] for word in s.split()]
print(l[0])


s = input()
newans = ''
newans = newans + s[0].upper()
for i in s[1:]:
	newans += i
print(newans)


def main():
	st = input()
	print(st[0].upper() + st[1:])
main()


x = input()
l = len(x)
print(x[0].capitalize() + x[1:l])


word = input()
n = len(word)
head = word[0].upper()
tail = word[1:n]
print(head + tail)


s = input()
q = s[0].upper()
print(q + s[1:])


x = input()
s = 0
s = ord(x[0])
if s >= 97 and s <= 122:
	s -= 32
ss = ''
ss = chr(s) + x[1:]
print(ss)


def main():
	s = input()
	print(s[0].capitalize() + s[1:])
main()


import math
a = input()
print(a[0].upper() + a[1:])


def main():
	l = input()
	print('%s%s' % (l[0].upper(), l[1:]))
main()


a = [i for i in input()]
a[0] = a[0].upper()
b = ''
for i in a:
	b += i
print(b)


n = input()
if n[0].isupper():
	print(n)
else:
	print(n[0].upper(), end='')
	print(n[1:])


astr = input()
first = astr[0]
rest = astr[1:]
first = first.upper()
astr = first + rest
print(astr)


string = input()
temp = string[0]
if ord(temp) >= 97 and ord(temp) <= 122:
	temp = chr(ord(temp) - 32)
new_string = temp + string[1:]
print(new_string)


s = input()
print(s[0:1].upper(), s[1:len(s)], end='', flush=True, sep='')


word = list(input())
FirstLetter = word[0].capitalize()
word[0] = FirstLetter
print(''.join(map(str, word)))


a = input()
c = ''
for i in range(len(a) - 1):
	c += a[i + 1]
print(a[0].upper() + c)


word = ' '.join(input()).split()
word[0] = word[0].capitalize()
print(''.join(word))


n = input()
s = n[0]
t = n[1:]
m = s.capitalize()
print(m + t)


x = input()
if x[0] != x[0].upper():
	a = x[0].upper()
	b = x[1:]
	c = a + b
	print(c)
else:
	print(x)


a = input()

def caps(a):
	if len(a) == 1:
		if 'a' <= a <= 'z':
			return chr(ord(a[0]) - ord('a') + ord('A'))
		else:
			return a
	elif 'a' <= a[0] <= 'z':
		return chr(ord(a[0]) - ord('a') + ord('A')) + a[1:]
	else:
		return a
print(caps(a))


s = input()
x = ''
if s[0].islower() == True:
	x += s[0].upper()
	for i in range(1, len(s)):
		x += s[i]
else:
	x += s
print(x)


ans = ''
s = input()
first = 0
for i in s:
	if first == 0:
		ans += i.upper()
		first += 1
	else:
		ans += i
print(ans)


s = input()
s1 = s[1:]
s2 = s[0].upper()
string = s2 + s1
print(string)


x = input()
for i in range(len(x)):
	p = x[0]
	o = p.capitalize()
print(o + x[1:])


a = input()
m = a[0].upper()
b = a[1:]
print(m + b)


s = input()
if s[0].isupper():
	print(s)
else:
	n = s[0].upper()
	print(n + s[1:])


text = input()
x = list(text)
st = ''
if len(x) == 0:
	print(st)
else:
	st += x[0].upper()
	for i in x[1:]:
		st += i
	print(st)


s = input()
x = ord(s[0])
if x > 90:
	print(chr(x - 32) + s[1:])
else:
	print(s)


s = input()
s1 = ''
if s[0] >= 'A' and s[0] <= 'Z':
	print(s)
else:
	s1 += s[0].upper()
	s1 += s[1:]
	print(s1)


n = input()
a = n[0]
a = a.upper()
print(a, end='')
for i in range(len(n) - 1):
	print(n[i + 1], end='')


s = input()
t = s[:1]
if t.islower():
	u = t.upper()
else:
	u = s[0]
print(u + s[1:])


x = input()
char = x[0].upper()
str2 = x[1:]
string = char + str2
print(string)


word = list(map(lambda x: x, input()))
word[0] = word[0].upper()
print(''.join(word))


word = str(input())
s = 'abcdefghijklmnopqrstuvwxyz'
c = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
i = 0
w = ''
f = True
while i < len(s):
	if word[0] == s[i]:
		w = w + c[i]
		j = 1
		while j < len(word):
			w = w + word[j]
			j += 1
		break
	i += 1
i = 0
while i < len(c):
	if word[0] == c[i]:
		f = False
		break
	i += 1
if f:
	print(w)
else:
	print(word)


F = input()
F = F[0].upper() + F[1:]
print(F)


s = input()
x = s[0]
if s[0] >= 'a' and s[0] <= 'z':
	x = chr(ord(s[0]) - 32)
print(x + s[1:])


name = input()
print(name[0].title() + name[1:])


s = input()
if len(s) <= 10 ** 3:
	s = s[0].capitalize() + s[1:]
	print(s)


inputval = input()
print(inputval[0].upper() + inputval[1:])


v = input()
x = list(v)
x[0] = x[0].upper()
for j in x:
	print(j, end='')


stt = str(input())
if ord(stt[0]) > ord('Z'):
	stt = stt[:1].replace(stt[0], chr(ord(stt[0]) - ord('a') + ord('A'))) + stt[1:]
print(stt)


word = input()
cap_word = str(word[0].upper()) + str(word[1:])
print(cap_word)


raw = input()
mut = []
for x in range(0, len(raw)):
	if x == 0:
		mut.append(raw[0].upper())
	else:
		mut.append(raw[x])
mutt = ''.join(mut)
print(mutt)


a = input()
print(a.title()[0] + a[1:9999])


s = input()
if 'a' <= s[0] <= 'z':
	s = chr(ord('A') - ord('a') + ord(s[0])) + s[1:]
print(s)


a = input()
if ord(a[0]) > 90:
	a = chr(ord(a[0]) - 32) + a[1:]
print(a)


s = input()
ans = ''
val = ord(s[0])
if val >= 97 and val <= 122:
	val = val - 97
	ct = val + 65
	ans = ans + str(chr(ct))
else:
	ans = ans + s[0]
for i in range(len(s)):
	if i == 0:
		continue
	else:
		ans = ans + s[i]
print(ans)


l = list(input().strip('\n\r\t '))
l[0] = l[0].upper()
print(''.join(l))


s = input()
s1 = ''
c = 0
if s[0].isupper():
	print(s)
else:
	for i in s:
		if i.islower() and c == 0:
			s1 += i.upper()
			c = 1
		else:
			s1 += i
	print(s1)


str1 = input()
for s in range(len(str1)):
	if s == 0:
		print(str1[s].title(), end='')
	else:
		print(str1[s], end='')


import sys, bisect, copyreg, copy, statistics, os

def inp():
	return sys.stdin.readline().strip()

def IIX():
	return (int(x) for x in sys.stdin.readline().split())

def II():
	return int(inp())

def LI():
	return list(map(int, inp().split()))

def L(x):
	return list(x)

def out(var):
	return sys.stdout.write(str(var))
s = inp()
out(s[0].upper() + s[1:])


s = input()
if s[0].isupper() == True:
	print(s)
else:
	a = chr(ord(s[0]) - 32)
	s1 = a + s[1:len(s)]
	print(s1)


x = input()
if 65 <= ord(x[0]) <= 96:
	print(x)
else:
	print(chr(65 + ord(x[0]) - 97), end='')
	print(x[1:])


word = input().strip()
(first, *rest) = word
firstOrd = ord(first)
if ord('a') <= firstOrd <= ord('z'):
	first = chr(firstOrd - 32)
print(''.join([first] + rest))


ch = str(input())
U = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
L = 'abcdefghijklmnopqrstuvwxyz'
if ch[0] in U:
	print(ch)
else:
	print(U[L.index(ch[0])] + ch[1:])


print(''.join(map(lambda e: e[1] if e[0] else e[1].upper(), enumerate(input()))))


def capital(letter):
	return letter[0].upper() + letter[1:]
print(capital(input()))


s = input()
c = s[0]
y = ''
for i in range(1, len(s)):
	y += s[i]
c = c.upper()
c += y
print(c)


word = input()
a = word[0].upper()
b = word[0]
n = len(word)
ans = a
for i in range(n):
	if i >= 1:
		ans += word[i]
print(ans)


def capitalize(word):
	if ord(word[0]) > 90:
		word = chr(ord('A') + (ord(word[0]) - ord('a'))) + word[1:]
	return word

def main():
	word = input()
	print(capitalize(word))
main()


s = input()
a = ''
a = a + s[0].upper()
for i in s[1:]:
	a += i
print(a)


n = input()
b = n[0].upper()
print(b + n[1:])


myString = input()
print(myString[0].upper() + myString[1:])


s = input()
j = 1
for i in s:
	if j == 1:
		s1 = i.upper()
		j = j + 1
	else:
		s1 = s1 + i
print(s1)


string = input()
capitalLetter = string[0].upper()
ans = capitalLetter + string[1:]
print(ans)


def WordCapitalization(word):
	return word[0].upper() + ''.join(word[1:len(word)])
print(WordCapitalization(list(input())))


from __future__ import division, print_function
from sys import stdin, stdout
import itertools, os, sys, threading
from collections import deque, Counter, OrderedDict, defaultdict
import heapq
from math import ceil, floor, log, sqrt, factorial, pow, pi, gcd

def ii():
	return int(input())

def si():
	return str(input())

def mi():
	return map(int, input().split())

def li():
	return list(mi())

def fii():
	return int(stdin.readline())

def fsi():
	return str(stdin.readline())

def fmi():
	return map(int, stdin.readline().split())

def fli():
	return list(fmi())
abc = 'abcdefghijklmnopqrstuvwxyz'
abd = {'a': 0, 'b': 1, 'c': 2, 'd': 3, 'e': 4, 'f': 5, 'g': 6, 'h': 7, 'i': 8, 'j': 9, 'k': 10, 'l': 11, 'm': 12, 'n': 13, 'o': 14, 'p': 15, 'q': 16, 'r': 17, 's': 18, 't': 19, 'u': 20, 'v': 21, 'w': 22, 'x': 23, 'y': 24, 'z': 25}
mod = 1000000007
(dx, dy) = ([-1, 1, 0, 0], [0, 0, 1, -1])

def getKey(item):
	return item[0]

def sort2(l):
	return sorted(l, key=getKey)

def d2(n, m, num):
	return [[num for x in range(m)] for y in range(n)]

def isPowerOfTwo(x):
	return x and (not x & x - 1)

def decimalToBinary(n):
	return bin(n).replace('0b', '')

def ntl(n):
	return [int(i) for i in str(n)]

def powerMod(x, y, p):
	res = 1
	x %= p
	while y > 0:
		if y & 1:
			res = res * x % p
		y = y >> 1
		x = x * x % p
	return res

def gcd(x, y):
	while y:
		(x, y) = (y, x % y)
	return x
graph = defaultdict(list)
visited = [0] * 1000000
col = [-1] * 1000000

def dfs(v, c):
	if visited[v]:
		if col[v] != c:
			print('-1')
			exit()
		return
	col[v] = c
	visited[v] = 1
	for i in graph[v]:
		dfs(i, c ^ 1)

def bfs(d, v):
	q = []
	q.append(v)
	visited[v] = 1
	while len(q) != 0:
		x = q[0]
		q.pop(0)
		for i in d[x]:
			if visited[i] != 1:
				visited[i] = 1
				q.append(i)
		print(x)

def make_graph(e):
	d = {}
	for i in range(e):
		(x, y) = mi()
		if x not in d.keys():
			d[x] = [y]
		else:
			d[x].append(y)
		if y not in d.keys():
			d[y] = [x]
		else:
			d[y].append(x)
	return d

def gr2(n):
	d = {}
	for i in range(n):
		(x, y) = mi()
		if x not in d.keys():
			d[x] = [y]
		else:
			d[x].append(y)
	return d

def connected_components(graph):
	seen = set()

	def dfs(v):
		vs = set([v])
		component = []
		while vs:
			v = vs.pop()
			seen.add(v)
			vs |= set(graph[v]) - seen
			component.append(v)
		return component
	ans = []
	for v in graph:
		if v not in seen:
			d = dfs(v)
			ans.append(d)
	return ans

def primeFactors(n):
	s = set()
	while n % 2 == 0:
		s.add(2)
		n = n // 2
	for i in range(3, int(sqrt(n)) + 1, 2):
		while n % i == 0:
			s.add(i)
			n = n // i
	if n > 2:
		s.add(n)
	return s
s = 'QWERTYUIOPASDFGHJKLZXCVBNM'
x = si()
if x[0] in s:
	print(x)
else:
	y = ord(x[0]) - 97
	print(chr(y + 65) + x[1:])


a = input()
p = a[0].capitalize()
print(p + a[1:])


a = input()
c = len(a)
print(a[0].title() + a[1:c])


w = input()
new_w = ''
for i in range(len(w)):
	if i == 0:
		new_w = new_w + w[i].upper()
	else:
		new_w = new_w + w[i]
print(new_w)


input = str(input())
list = list(input)
output = ''
if list[0].isupper():
	output = output + list[0]
else:
	output = output + list[0].upper()
for i in range(1, len(list)):
	output = output + list[i]
print(output)


word = input()
print(word[0].upper() + word[1:len(word)])


def is_uprcase(string):
	upr_val = string[0].upper()
	if string[0] != upr_val:
		print(upr_val, end='')
	else:
		print(string[0], end='')
	for i in string[1:]:
		print(i, end='')
word = input()
is_uprcase(word)


g = input()
fl = 0
if ord(g[0]) < 94:
	fl = ord(g[0])
else:
	fl = ord(g[0]) - 32
print(chr(fl) + g[1:len(g)])


inp = input()
if inp[0] == inp[0].upper():
	print(inp)
else:
	print(inp[0].upper() + inp[1:])


s1 = input()
l = s1[0].upper() + ''
l = l + s1[1:]
print(l)


st = input()
print(st[0].capitalize() + st[1:], end='')


n = input()
c = n[0].upper() + n[1:]
print(c)


__author__ = 'curiousfool'
n = input()
n = list(n)
s = ''
for i in range(0, len(n)):
	if n[0].isupper():
		s = s + n[i]
	else:
		n[0] = n[0].upper()
		s = s + n[i]
print(s)


s = input()
if ord(s[0]) > 91:
	s = chr(ord(s[0]) - 32) + s[1:]
print(s)


s = input()
if s[0].islower():
	y = s[0].upper()
	r = s[1:]
	print(y + r)
elif s[0].isupper():
	print(s)


t = input()

def Convert(fu):
	list1 = []
	list1[:0] = fu
	return list1
t = Convert(t)
t[0] = t[0].upper()
print(''.join(t))


w1 = input()
w2 = w1[0].upper() + w1[1:]
print(w2)


a = input()
i = 0
b = []
while i < len(a):
	if i == 0:
		b.append(a[i].capitalize())
	else:
		b.append(a[i])
	i += 1
listToStr = ''.join([str(elem) for elem in b])
print(listToStr)


str = input()
print(str[0].upper(), end='')
for i in range(1, len(str)):
	print(str[i], end='')


string = input()
s1 = string[:1].upper()
string = s1 + string[1:]
print(string)


x = input()

def capitalize(word):
	letter = word[0]
	if word[0].isupper():
		return print(x)
	else:
		z = word[0].upper()
		return print(z + x[1:])
capitalize(x)


while True:
	try:
		word = input()
		ans = word[0].upper() + word[1:]
		print(ans)
	except EOFError:
		break


from math import *
import sys, random

def nextInt():
	return int(input())

def nextStrs():
	return input().split()

def nextInts():
	return list(map(int, nextStrs()))

def main():
	a = input()
	print(a[:1].capitalize() + a[1:])
exit(main())


import math
word = input()
print(word[0].upper(), word[1:len(word):1], sep='')


st = input()
newSt = []
i = 0
while i != len(st):
	if i == 0:
		newSt.append(st[0].upper())
	else:
		newSt.append(st[i])
	i = i + 1
newSt = ''.join(newSt)
print(newSt)


def WordCap():
	word = input('')
	new_word = ''
	new_word += word[0].upper()
	for i in range(1, len(word)):
		new_word += word[i]
	return new_word
print(WordCap())


n = list(input())
initial = n[0]
string = ''
if ord(initial) > 95:
	n[0] = str(initial.upper())
for i in range(0, len(n)):
	string += n[i]
print(string)


s = list(input())
c = s[0]
c = c.upper()
s[0] = c
for i in s:
	print(i, end='', sep='')
print(' ')


def main():
	val = input()
	if len(val) != 0:
		val = val[0].upper() + val[1:]
	else:
		val = ''
	print(val)
main()


s = list(input())
for i in range(len(s)):
	if i == 0 or s[i - 1] == ' ':
		s[i] = s[i].upper()
print(''.join(s))


x = input()
a = x[0]
c = a.capitalize()
i = 1
s = ''
while i < len(x):
	s = s + x[i]
	i += 1
s = c + s
print(s)


m = list(input())
a = m[0].upper()
m.pop(0)
m.insert(0, a)
print(''.join(m))


s = str(input())
ans = []
for i in range(0, len(s)):
	if i == 0:
		ans.append(s[i].upper())
	else:
		ans.append(s[i])
for i in ans:
	print(i, end='')


string = input()
result = string[0].upper()
lst = list(string)
lst.pop(0)
lst = ''.join(lst)
print(result + lst)


s = str(input())
lst = [word[0].upper() + word[1:] for word in s.split()]
s = ' '.join(lst)
print(s)


s = list(input())
capital_letter = s[0]
s = s[1:]
ans = ''
capital_letter = str(capital_letter).capitalize()
s = [capital_letter] + s
print(ans.join(s))


user = input()
print(user[0].upper() + user[1:])


str = input()
out = ''
for i in range(len(str)):
	if i == 0:
		out += str[i].upper()
	else:
		out += str[i]
print(out)


p = input()
if p[0].isupper():
	print(p)
else:
	print(p[0].upper() + p[1:len(p)])


s = input()
j = s[0]
j = j.upper()
s = j + s[1:]
print(s)


stri = input()
s1 = stri[0]
retstr = s1.capitalize() + stri[1:]
print(retstr)


x = input()
if ord(x[0]) > 90:
	print(x[0].upper() + x[1:])
else:
	print(x)


import sys

def Q8(string):
	s = string[0].upper()
	string = s + string[1:]
	return string
line = sys.stdin.readline().strip()
print(Q8(line))


word = str(input())
if len(word) >= 1 and len(word) <= 1000:
	a = word[0].upper()
	word = a + word[1:]
	print(word)


n = input()
res = n[1:]
n = n[0]
n = n.capitalize()
n = n + res
print(n)


(h, *t) = input()
print(h.upper(), *t, sep='')


a = input()
if a[0].islower():
	print(a[0].upper(), end='')
	print(a[1:])
elif a[0].isupper():
	print(a)


n = input()
letter = n[:1].capitalize()
print(letter + n[1:])


a = input()
list = []
for i in range(len(a)):
	list.append(a[i])
list[0] = list[0].capitalize()
for i in list:
	print(i, end='')


a = list(input())
if a[0].islower():
	a[0] = chr(ord(a[0]) - 32)
	print(''.join(a))
else:
	print(''.join(a))


s = str(input())
if 65 <= ord(s[0]) <= 90:
	print(s)
else:
	print(s[0].upper() + s[1:])


val = list(input())
val[0] = val[0].upper()
print(''.join([str(ele) for ele in val]))


s = input()
k = len(s)
s = str.upper(s[0]) + s[1:k]
print(s)


c = ''
x = ''
l = ''
h = input()
c = h[0].upper()
l = h[1:]
c = c + l
print(c)


string = input()
res = ''
res = res + string[0].upper()
res = res + string[1:len(string)]
print(res)


word = input()
if word.isalpha() & (word.__len__() <= 1000):
	newword = word[0].upper() + word[1:word.__len__()]
	print(newword)


x = input()
res = ''
res = x[0].upper() + x[1:]
print(res)


string = input('')
newString = string[0].upper()
print(newString + string[1:])


import sys
inp = sys.stdin
s = inp.readline()
print(s[0].upper() + s[1:])


s = str(input())
for i in range(len(s)):
	if i == 0:
		c = s[i].upper()
	else:
		c += s[i]
print(c)


m = input()
if m[0].isalpha():
	print(m[0].upper() + m[1:])
else:
	print(m)


y = input()
x = []
for i in y:
	x.append(i)
z = x[0].upper()
x[0] = z
for i in x:
	print(i, end='')


a = input()
b = list(a)
c = b[0].upper()
l = ''
for i in b[1:]:
	l = l + i
if b[0].isupper():
	print(a)
else:
	print(c + l)


x = list(input())
a = x[0]
x.remove(a)
b = a.upper()
x.insert(0, b)
for i in x:
	print(i, end='')


S = input()
S1 = S.upper()
print(S1[0] + S[1:])


inp = list(input())
if inp[0] >= 'a':
	c = ord(inp[0]) - ord('a') + ord('A')
	inp[0] = str(chr(c))
out = ''
for x in inp:
	out += x
print(out)


word = input()
if ord(word[0]) >= 97 and ord(word[0]) <= 132:
	c = chr(ord(word[0]) - 32)
	c = c + word[1:]
	print(c)
else:
	print(word)


a = input()
s = a[0]
f = a[1:]
d = s.upper()
print(d + f)


s = input()
lst = [str(x) for x in str(s)]
if lst[0].islower():
	lst[0] = lst[0].upper()
ans = ''.join((str(r) for r in lst))
print(ans)


input_str = input()
output_str = ''
if len(input_str) == 0:
	output_str = input_str
elif len(input_str) == 1:
	output_str = input_str[0].upper()
elif len(input_str) > 1:
	output_str = input_str[0].upper() + input_str[1:]
print(output_str)


a = input()
ans = ''
for i in range(len(a)):
	if i == 0 and ord(a[i]) > 91:
		ans = chr(ord(a[i]) - 32)
	else:
		ans += a[i]
print(ans)


str = list(input())

def solve(strP):
	strP[0] = strP[0].upper()
	return ''.join(strP)
print(solve(str))


s = input()
first = s[:1]
sec = s[1:]
print(first.upper() + sec)


def capitalize(string):
	if string[0] != string.upper():
		return string[0].upper() + string[1:]
	return string
print(capitalize(input()))


st = input()
out_st = st[0].capitalize()
for i in range(1, len(st)):
	out_st += st[i]
print(out_st)


import sys
input = sys.stdin.readline
s = input()
fir = s[:1].upper()
final = fir + s[1:]
print(final)


st = input()
s = len(st) + 1
if st[0].isupper() == True:
	print(st)
else:
	print(st[0].upper() + st[1:s])


s = input()
if s[0].islower() is True:
	k = s[0].upper()
	print(k + s[1:])
	quit()
print(s)


n = input()
n0 = str()
n1 = str()
n0 += n[0]
n1 += n[1:]
n0 = n0.upper()
print(n0 + n1)


inputString = str(input())
print(inputString[0].upper() + inputString[1:])


def main():
	word = input()
	n = len(word)
	if word.islower() == True:
		print(word.title())
	else:
		print(word[0].upper() + word[1:n])
main()


s = list(input())
if s[0].isupper():
	print(''.join(s))
else:
	s[0] = chr(ord(s[0]) - 32)
	print(''.join(s))


s = input()
f = s[0]
t = s[1:]
print(f.capitalize() + t)


word = input()
Capitilized = str(word[0]).upper()
NewWord = (Capitilized, str(word[1:]))
makeitastring = ''.join(map(str, NewWord))
print(makeitastring)


s = input()
if s[0] > 'Z':
	print(chr(ord(s[0]) - 32), end='')
else:
	print(s[0], end='')
print(s[1:])


n = input()
x = n[0]
y = n[1:]
if x.islower():
	z = x.upper()
	str1 = z + y
	print(str1)
else:
	print(n)


x = input()
y = x[0].upper()
if y == True:
	print(x)
else:
	print(y + x[1:])


word = input()
ans = word[:1].capitalize() + word[1:]
print(ans)


palabra = input()
l = list(palabra)
x = l[0].upper()
new = palabra[1:]
newWord = x + new
print(newWord)


s = input('')
if 65 <= ord(s[0]) < 97:
	print(s)
else:
	d = ord(s[0]) - 32
	print(chr(d) + s[1:])


a = input()
x = []
r = ''
for i in range(len(a)):
	x.append(a[i])
for i in range(len(a)):
	if i == 0:
		r += x[i].upper()
	else:
		r += x[i]
print(r)


n = input()
p = n[0]
q = p.upper()
e = q + n[1:len(n)]
print(e)


x = input()
b = x[0].upper() + x[1:len(x)]
print(b)


n = input()
m = []
for letter in n:
	m.append(letter)
prva = m[0].upper()
m[0] = prva
print(''.join(m))


t = input()
at = t[0].upper()
print(at + t[1:len(t)])


def function(s):
	l = list(s)
	l[0] = l[0].upper()
	print(''.join(l))
s = input()
function(s)


word = input()
word = list(word)
word[0] = word[0].upper()
new_word = ''
for i in word:
	new_word += i
print(new_word)


m = input()
l = []
c = m.upper()
print(c[0] + m[1:])


s = input()
t = [x for x in s]
if ord(s[0]) >= 97:
	t[0] = chr(ord(s[0]) - 32)
	print(''.join(t))
else:
	print(s)


import string
a1 = string.ascii_uppercase
a2 = string.ascii_lowercase
s = list(input())
if s[0] in a2:
	s[0] = a1[a2.index(s[0])]
print(''.join(s))


name = input()
first_lett = name[0]
res = ''
first_lett = first_lett.upper()
res = first_lett + name[1:]
print(res)


l = input()
x = len(l)
s = l.upper()
print(s[0], end='')
print(l[1:x])


def mainf():
	st = input()
	print(st[0].upper() + st[1:])
mainf()


a = input()

def s(a):
	k = a[0]
	l = a[1:]
	k = k.upper()
	return k + l
print(s(a))


a = str(input())
if len(a) <= 1000:
	print(a[0].upper() + a[1:])


t = input()
if 97 <= ord(t[0]) <= 122:
	print(chr(ord(t[0]) - 32) + t[1:])
else:
	print(t)


st = input()
r = list(st)
char = r[0]
if char.isupper():
	pass
else:
	r[0] = chr(ord(char) - 32)
print(''.join(r))


slovo = input()
a = slovo[0].upper()
print(a + slovo[1:])


str_in = input()
print(str_in[0].upper() + str_in[1:])


old = input()
print(old[0].upper() + old[1:len(old)])


s = input()
letra = s[0].upper()
letra2 = s[1:]
print(letra + letra2)


try:
	s = input()
	print(s[0].upper() + s[1:])
except:
	pass


def main():
	a = str(input())
	b = a[0].upper() + a[1:len(a)]
	print(b)
main()


import string
word = input()
print(word[0].upper() + word[1:])


letter = list(input())
letter[0] = letter[0].upper()
delimiter = ''
print(delimiter.join(letter))


def main():
	i = input()
	l = list(i)
	l[0] = str(l[0]).upper()
	c = ''
	for f in range(len(l)):
		c += str(l[f])
	print(c)
main()


inp = input()
inp = ' '.join(inp)
inp = inp.split()
inp[0] = inp[0].upper()
print(''.join(inp))


s = input().strip()
s1 = s
s1 = s1.upper()
print(s1[0], end='')
print(s[1:])


s = input()
l = [ord(i) for i in s]
if 97 <= l[0] <= 122:
	l[0] -= 32
x = [chr(i) for i in l]
for i in x:
	print(i, end='')


count = 0
upper = 0
raw = input()
word = list(raw)
cap_it = word[0]
del word[0]
print(''.join(list(cap_it.upper()) + word))


s = input()
new = ''
s = list(s)
s[0] = s[0].capitalize()
for x in s:
	new += x
print(new)


s = input()
if s[0].isupper():
	print(s)
else:
	r = []
	for i in range(len(s)):
		if i == 0:
			r.append(s[0].upper())
		else:
			r.append(s[i])
	print(''.join(r))


from sys import stdin
input = stdin.readline
print((lambda s: s[0].upper() + s[1:])(input().strip()))


str = input()
if str[0].islower():
	x = chr(ord(str[0]) - 32)
	print(x + str[1:])
else:
	print(str)


import string
word = input()
word1 = ''
for i in range(1, len(word)):
	word1 += word[i]
print(word[0].upper() + word1)


inp = input()
a = int(ord(inp[0]))
print(inp[0].upper() + inp[1:])


word = input().strip()
print(word[0].upper() + word[1:])


a = input()
b = list(a)
b[0] = b[0].upper()
print(b[0] + a[1:])


import sys
s = input()
a = s[0:1]
b = s[1:len(s)]
s = a.upper() + b
print(s)


original = input()
result = original[0].upper() + original[1:]
print(result)


text = input().strip()
result = str.capitalize(text[0]) + text[1:]
print(result)


s = list(str(input()))
s[0] = s[0].upper()
print(''.join(s))


given = input()
print(given[0].upper(), end='')
for i in range(1, len(given)):
	print(given[i], end='')


word = input()
length = len(word)
if word[0].isupper():
	print(word)
else:
	txt = word[0].upper()
	final = txt + word[1:length]
	print(final)


s = input()
a = s[0].upper()
v = s[1:len(s)]
b = a + v
print(b)


import math
s = input()
s = s[0:1].upper() + s[1:]
print(s)


def capitalize(myStr):
	myList = list(myStr)
	myList[0] = myList[0].upper()
	myStr = ''.join(myList)
	return myStr
print(capitalize(input()))


w = input()
chars = [c for c in w]
if len(chars) > 0:
	x = chars.pop(0)
	chars.insert(0, x.upper())
print(''.join(chars))


a = str(input())
list1 = [str(i) for i in a]
b = str(list1[0].capitalize())
list1[0] = b
c = ''
for j in list1:
	c += '{}'.format(j)
print(c)


strings = input()
print(strings[0].upper() + strings[1:])


def split(word):
	return [char for char in word]
word = input()
array = split(word)
array[0] = array[0].upper()
cat = ''
for i in array:
	cat += i
print(cat)


n = list(input())
for i in range(0, len(n)):
	n[0] = n[0].upper()
	print(n[i], end='')


try:
	a = input()
	a1 = a[0]
	ar = a[1:]
	print(a1.upper() + ar)
except:
	pass


import re

def inp():
	return int(input())

def inlt():
	return list(map(int, input().split()))

def insr():
	s = input()
	return list(s[:len(s) - 1])

def invr():
	return map(int, input().split())
string = list(input())
string[0] = string[0].upper()
s = ''
for i in string:
	s += i
print(s)


word = input()
if ord(word[0]) > 96:
	word = chr(ord(word[0]) - 32) + word[1:]
print(word)


string = input()
frst = string[0]
print(frst.upper() + string[1:])


s = list(input())
s[0] = s[0].upper()
print(*s, sep='')


a = str(input())
print(a[0].capitalize() + a[1:])
b = 10
c = 100
d = 100
d = 100
d = 100
d = 100
d = 100
d = 100
d = 100
d = 100
d = 100
d = 100
d = 100
d = 100


value = input()
value = list(value)
if value[0].islower():
	value[0] = value[0].upper()
value = ''.join(value)
print(value)


s = input()
x = ''
if s[0].islower:
	x += s[0].upper()
x += s[1:]
print(x)


word = input()
res = word[1:]
res2 = word[:1].upper()
print(res2 + res)


n = input()
c = list(n)
a = ord(c[0])
if a <= 122 and a >= 97:
	b = a - 32
	print(chr(b) + ''.join(c[1:]))
else:
	print(n)


input_ = input()
new_string = ''
new_string += input_[0].upper()
new_string += input_[1:len(input_)]
print(new_string)


s = input()
capital = s[0].upper()
print(capital + s[1:])


x = input()
list = []
if x[0].islower():
	for i in range(len(x)):
		if i == 0:
			list.append(x[0].upper())
		else:
			list.append(x[i])
else:
	print(x)
y = ''.join(list)
print(y)


c = input()
c1 = ''
c1 += c[0].upper()
for i in range(1, len(c)):
	c1 += c[i]
print(c1)


s = input()
if ord(s[0]) > 90:
	s = s[0].upper() + s[1:]
	print(s)
else:
	print(s)


n = [i for i in input()]
n[0] = n[0].upper()
print(''.join(n))


def main():
	w = input()
	print(w[0].upper() + w[1:])
main()


a = input()
up = a.upper()
abc = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
print(abc[abc.find(up[0])] + a[1:])


a = str(input())
b = 'a'
if ord(a[0]) >= 92 and ord(a[0]) <= 122:
	b = ord(a[0]) - 32
	print(chr(b) + a[1:])
else:
	print(a)


inp = input()
print(f'{inp[0].upper()}{inp[1:]}')


a = list(input())
c = ''
b = a[0].upper()
c += str(b)
a.remove(a[0])
for i in a:
	c += str(i)
print(c)


inp = input()
s1 = inp[0]
s2 = inp[1:]
s1 = s1.upper()
res = s1 + s2
print(res)


A = list(input())
A[0] = A[0].upper()
print(''.join(list(A)))


test_strB = input()
test_strB = test_strB[0].upper() + test_strB[1:]
print(test_strB)


word = input()
capitalized = word[0].capitalize() + word[1:]
print(capitalized)


TN = 1

def solution():
	s = input()
	print(s[0].upper() + s[1:])
while TN != 0:
	solution()
	TN -= 1


def cap(word):
	return word[0].upper() + word[1:]
n = input()
print(cap(n))


i = input()
print(i[0].upper() + i[1:len(i)])


def main():
	word = input()
	p_word = word[0].capitalize() + word[1:]
	print(p_word)
main()


k = str(input())
m = list(k)
m[0] = m[0].upper()
k = ''.join(m)
print(k)


word = input()
if word[0].isupper():
	print(word)
else:
	print(word[0].upper() + word[1:])


x = input()
j = x[0].capitalize()
print(j + x[1:])


inp = input()
for i in inp:
	main = inp[0].upper() + inp[1:]
print(main)


def WordCapitalization():
	word = input()
	word = word[0].capitalize() + word[1:]
	print(word)
	return None

def main():
	WordCapitalization()
main()


s = list(input())
if ord(s[0]) >= 97:
	s[0] = chr(ord(s[0]) - 32)
print(''.join(s))


import sys

def input():
	return sys.stdin.readline().strip()

def iinput():
	return int(input())

def rinput():
	return map(int, sys.stdin.readline().strip().split())

def get_list():
	return list(map(int, sys.stdin.readline().strip().split()))
n = input()
n1 = list(n)
ans = n1[0].capitalize()
n1[0] = ans
ans1 = ''.join(n1)
print(ans1)


s1 = str(input())
if len(s1) > 0 and s1[0].islower():
	print(s1.upper()[0] + s1[1:])
else:
	print(s1)


var = input()
var1 = var.capitalize()
print(var1[0] + var[1:])


import copy
s1 = input()
s2 = copy.copy(s1)
s2 = s2.upper()
print(s2[0], sep='', end='')
i = int(1)
while i < len(s1):
	print(s1[i], sep='', end='')
	i = i + 1


word_string = input()
print(word_string.replace(word_string[0], word_string[0].upper(), 1))


def WordCapitalization():
	word = input().strip()
	return word if word[0].isupper() else word[0].upper() + word[1:]
a = WordCapitalization()
print(a)


wordstr = str(input())
new = wordstr[0].upper()
wordstr = wordstr[1:]
print(new + wordstr)


s = input()
initial = s[0]
if initial.islower():
	s = initial.upper() + s[1:]
print(s)


L = list(input())
if len(L) <= 10 ** 3:
	a = str(L[0])
	b = L[1::1]
	t = ''.join(a)
	k = ''.join(b)
	h = t.upper()
	x = h + k
	print(x)


text = input()
if len(text) >= 1:
	text = text[0].upper() + text[1:]
print(text)


word = input()
Word = word[0].upper()
I = False
for i in word:
	if I == True:
		Word += i
	else:
		I = True
print(Word)


def capital(s):
	l1 = list(map(str, s))
	cap = s[0].capitalize()
	l1[0] = cap
	ans = ''.join(l1)
	return ans
print(capital(input()))


s = input()
if ord(s[0]) >= 97:
	c = chr(ord(s[0]) - 32)
	c = c + s[1:len(s)]
else:
	c = s
print(c)


str_1 = input()
i = 0
new1 = str_1[i]
new1 = new1.capitalize()
for i in range(1, len(str_1)):
	new1 = new1 + str_1[i]
print(new1)


inp = input()
cap = inp[0].upper() + inp[1:]
print(cap)


s = input()
a = s[0].upper()
b = s[0].lower()
if s[0].islower():
	s = s.replace(b, a, 1)
print(s)


import sys
a = sys.stdin.readline()
out = ''
out += a[0].upper()
for loop in range(1, len(a)):
	out += a[loop]
print(out, end='')


TablicaZKlawiatury = input()
TablicaZKlawiatury = TablicaZKlawiatury[0].upper() + TablicaZKlawiatury[1:]
print(TablicaZKlawiatury)


def split(word):
	return [char for char in word]
word = input()
l = split(word)
l[0] = l[0].upper()
print(''.join(l))


s = str(input())
s1 = ''
s1 = s1 + s[0].upper()
s1 = s1 + s[1:len(s)]
print(s1)


a = input()
if 'a' <= a[0] <= 'z':
	a = a[0].capitalize() + a[1:]
	print(a)
elif 'A' <= a[0] <= 'Z':
	print(a)


a = str(input())
b = a.split()
c = a[0].capitalize()
d = ''.join(b)
e = d.replace(a[0], c, 1)
print(e)


npt = input()
word = [i for i in npt]
if word[0].islower():
	word[0] = word[0].upper()
print(''.join(word))


i = input()
x = list(i)
if i == '':
	print('')
else:
	x[0] = x[0].upper()
	out = ''
	for _ in x:
		out += _
	print(out)


s = input()
if ord(s[0]) > 96:
	print(chr(ord(s[0]) - 32) + s[1:])
else:
	print(s)


a = input('')
l = []
for i in range(len(a)):
	l.append(a[i])
z = l[0]
z = z.upper()
l[0] = z
for i in range(len(a)):
	print(l[i], end='')


s = input()
if len(s) > 0 and s[0].islower():
	print(s[0].upper() + s[1:])
if s[0].isupper():
	print(s)


w = input()
w2 = w[0].upper()
print(''.join(w2 + w[1:]))


s = input()
a = 0
i = 1
if a > 0:
	i += 1
print(s[0].upper() + s[1:len(s)])


word = input()
s = word[0]
if s.islower():
	f = s.upper()
	print(f, end='')
	for i in range(1, len(word)):
		print(word[i], end='')
else:
	print(word)


import sys

def gets():
	return sys.stdin.readline().strip()

def get():
	return int(sys.stdin.readline().strip())

def geti():
	return map(int, sys.stdin.readline().strip().split())

def getli():
	return list(map(int, sys.stdin.readline().strip().split()))
s = gets()
print(s[0].upper(), end='')
for i in range(1, len(s)):
	print(s[i], end='')


s = input()
o = s[0].upper() + s[1:]
print(o)


s = input()
if s[0] >= 'a' and s[0] <= 'z':
	n = ord(s[0])
	n -= 32
	print(chr(n) + s[1:])
else:
	print(s)


word = input()
if word[0].islower() == True:
	word = word[0].upper() + word[1:]
print(word)


a = input('')
a = list(a)
b = ''
for i in range(len(a)):
	if i == 0:
		a[i] = a[i].upper()
		b = b + a[i]
	else:
		b = b + a[i]
print(b)


ls = list(input())
ls[0] = ls[0].upper()
st = ''
for l in ls:
	st = st + str(l)
print(st)


string = input()
string_list = list(string)
print(string_list[0].upper() + string[1:])


x = input()
x = list(x)
i = 0
while i < len(x):
	if i == 0:
		print(x[0].capitalize(), end='')
	else:
		print(x[i], end='')
	i += 1


a = input()
a_new = a[0].upper() + a[1:len(a)]
print(a_new)


S = input()
ans = ''
if ord(S[0]) >= 97:
	ans += chr(65 + (ord(S[0]) - 97))
	ans += S[1:len(S)]
	print(ans)
else:
	print(S)


inputLine = input()
if ord(inputLine[0]) >= 97:
	x = chr(ord(inputLine[0]) - 32)
	if len(inputLine) > 1:
		myList = [inputLine[1]]
		for i in range(2, len(inputLine)):
			myList.append(inputLine[i])
		latter = ''.join(myList)
		print(x + latter)
	else:
		print(x)
else:
	print(inputLine)


s = input()
t = s[1:]
k = []
if s[0].isupper() == False:
	k.append(s[0].capitalize())
	o = ''.join(k)
	print(o + t)
else:
	print(s)


s = input()
b = ' '
if ord(s[0]) >= ord('a') and ord(s[0]) <= ord('z'):
	b = chr(ord(s[0]) + ord('A') - ord('a')) + s[1:]
	print(b)
else:
	print(s)


s = input()
l = []
for i in s:
	l.append(i)
for i in range(0, len(l)):
	if i == 0:
		print(l[i].upper(), end='')
	else:
		print(l[i], end='')


s = input()
i = s[0].upper()
print(i + s[1:])


from sys import stdin, stdout
s = stdin.readline().strip()
if ord(s[0]) >= 95:
	stdout.write(chr(ord(s[0]) - ord('a') + ord('A')))
else:
	stdout.write(s[0])
for x in s[1:]:
	stdout.write(x)


new = str(input())
t = new[0].upper()
s = new[1:]
new_ = t + s
print(new_)


a = input('')
b = list(a)
c = ''
b[0] = b[0].upper()
for i in range(len(b)):
	c += b[i]
print(c)


k = input()
t = ''
k = list(k)
if k[0].islower():
	k[0] = k[0].upper()
for i in k:
	t += i
print(t)


s = input()
for i in range(len(s)):
	if s.find(s[0].lower()) != -1:
		print(s[0].upper() + s[1:])
		break
	else:
		print(s)
		break


def solve():
	s = input()
	s = s[0].capitalize() + s[1:]
	print(s)
solve()


import sys
import math
import os
import itertools
import string
import heapq
import _collections
from collections import Counter
from collections import defaultdict
from functools import lru_cache
import bisect
import re
import queue
from decimal import *

class Scanner:

	@staticmethod
	def int():
		return int(sys.stdin.readline().rstrip())

	@staticmethod
	def string():
		return sys.stdin.readline().rstrip()

	@staticmethod
	def map_int():
		return [int(x) for x in Scanner.string().split()]

	@staticmethod
	def string_list(n):
		return [input() for i in range(n)]

	@staticmethod
	def int_list_list(n):
		return [Scanner.map_int() for i in range(n)]

	@staticmethod
	def int_cols_list(n):
		return [int(input()) for i in range(n)]

class Math:

	@staticmethod
	def gcd(a, b):
		if b == 0:
			return a
		return Math.gcd(b, a % b)

	@staticmethod
	def lcm(a, b):
		return a * b // Math.gcd(a, b)

	@staticmethod
	def divisor(n):
		res = []
		i = 1
		for i in range(1, int(n ** 0.5) + 1):
			if n % i == 0:
				res.append(i)
				if i != n // i:
					res.append(n // i)
		return res

	@staticmethod
	def round_up(a, b):
		return -(-a // b)

	@staticmethod
	def is_prime(n):
		if n < 2:
			return False
		if n == 2:
			return True
		if n % 2 == 0:
			return False
		d = int(n ** 0.5) + 1
		for i in range(3, d + 1, 2):
			if n % i == 0:
				return False
		return True

def pop_count(x):
	x = x - (x >> 1 & 6148914691236517205)
	x = (x & 3689348814741910323) + (x >> 2 & 3689348814741910323)
	x = x + (x >> 4) & 1085102592571150095
	x = x + (x >> 8)
	x = x + (x >> 16)
	x = x + (x >> 32)
	return x & 127
MOD = int(1000000000.0) + 7
INF = int(1000000000000000.0)

def solve():
	S = Scanner.string()
	S = str.upper(S[0]) + S[1:]
	print(S)

def main():
	solve()
main()


word = input('')
for i in range(len(word)):
	word = word[0].upper() + word[1:]
print(word)


l = list(input())
s = ''
if ord(l[0]) >= 97:
	l[0] = chr(ord(l[0]) + 65 - 97)
print(s.join(l))


word = input()
if 97 <= ord(word[0]) <= 122:
	ans = chr(ord(word[0]) - 32)
else:
	ans = word[0]
w = ans
for i in range(1, len(word)):
	w += word[i]
print(w)


slowo1 = input()
slowo2 = slowo1
if ord(slowo1[0]) < ord('a'):
	print(slowo1)
else:
	literka = slowo2.capitalize()
	duzeslowo = literka[0] + slowo1[1:]
	print(duzeslowo)


entrada = str(input())
saida = entrada[0].upper()
saida += entrada[1:]
print(saida)


w = input()
ara = []
for i in w:
	ara.append(i)
ara[0] = ara[0].upper()
print(''.join(ara))


string = input()
new_string = string[0].upper()
new_string += string[1:]
print(new_string)


d = input()
if ord(d[0]) >= 97:
	print(chr(ord(d[0]) - 32) + d[1:])
else:
	print(d)


line = input()
list = []
new = ''
for i in line:
	list.append(i)
list[0] = list[0].upper()
for i in list:
	new += i
print(new)


L = input()
P = L[0].upper()
F = L[1:]
G = P + F
print(G)


x = input()
y = len(x)
x[0].title()
print(x[0].title() + x[1:y])


word = input()
wordelements = word.split(word[0], 1)
final = [word[0].upper(), wordelements[1]]
print(''.join(final))


s = input()
left = s[0].upper()
right = s[1:]
print(''.join(left + right))


palavra = input()
print(palavra[0].upper() + palavra[1:])


word = input()
newword = word[0].upper() + word[1:]
print(newword)


a = str(input())
x = ''
if ord(a[0]) >= 97 and ord(a[0]) <= 122:
	x = chr(ord(a[0]) - 32)
	print(x + a[1:])
else:
	print(a)


word = input()
temp = ''
temp += word[0].upper()
temp += word[1:]
print(temp)


def wordCap(s):
	newWord = []
	newString = ''
	for x in s:
		newWord.append(x)
	firstLetter = newWord[0].upper()
	newString += firstLetter
	for y in s[1:]:
		newString += y
	return newString
s = input()
print(wordCap(s))


import re
i = input()
print(re.sub(i[:1], i[:1].upper(), i, 1))


s = input()
if s[0].isupper():
	print(s)
else:
	print(chr(ord(s[0]) - 32) + s[1:])


s = input()
f = s[0]
s = s[1:]
so = ''
so = so + f
so = so.upper()
for i in s:
	so = so + i
print(so)


main = input()
first = main[:1]
first = first.upper()
print(first + main[1:])


x = input()
x = list(x)
x[0] = x[0].capitalize()
print(''.join(x))


s = input()
p = ''
for i in range(len(s)):
	if 'a' <= s[i] <= 'z':
		p += chr(ord(s[i]) - 32)
		break
	elif 'A' <= s[i] <= 'Z':
		p += s[i]
		break
	else:
		p += s[i]
p += s[i + 1:]
print(p)


word = str(input())
word_listed = list(word)
word_listed[0] = word_listed[0].upper()
new_word = ''.join(word_listed)
print(new_word)


word = input()
print(word[0].upper(), word[1:], sep='')


s = input()
re = s[0].upper() + s[1:]
print(re)


lin = [x for x in input()]
if ord(lin[0]) > 95:
	lin[0] = lin[0].upper()
print(''.join(lin))


s = input()
fir = s[0]
print(fir.upper() + s[1:])


str1 = input()
list1 = list(str1)
if list1[0].islower():
	list1[0] = list1[0].upper()
print(''.join(list1))


w = input()
a = w[0].upper()
b = w[1:]
print(a + b)


s = list(input())
s[0] = s[0].upper()
l = len(s)
for i in range(l):
	print(s[i], end='')


input_string = list(input())
input_string[0] = input_string[0].upper()
print(''.join(input_string))


n = list(input())
n[0] = n[0].upper()
print(n[0] + ''.join(n[1:]))


import sys
n = input()
p = n.title()
print(p[0] + n[1:])


word = input()
capitalized_word = ''
temp = list(word)
temp[0] = temp[0].capitalize()
for char in temp:
	capitalized_word += char
print(capitalized_word)


from sys import stdin
n = stdin.readline().strip()
print(n[0].upper() + n[1:])


word = input()
new = ''
word = word[0].upper() + word[1:]
print(word)


def Convert(string):
	list1 = []
	list1[:0] = string
	return list1
line = Convert(input())
line[0] = line[0].upper()
print(''.join(line))


try:
	(w, wl) = (input(), list())
	if len(w) <= 10 ** 3 and ' ' not in w:
		for i in w:
			wl.append(i)
	del i, w
	(wl[0], w) = (wl[0].capitalize(), '')
	for i in wl:
		w += i
	print(w)
except:
	pass


def main():
	ls = list(input())
	k = str(ls[0]).upper()
	ls = list(k) + ls[1:]
	print(''.join((str(i) for i in ls)))
main()


a = str(input())
print(a[:1].capitalize() + a[1:])


s = input()
print('{}{}'.format(s[0].upper(), ''.join(s[1:])))


input_string = input()
first_letter = input_string[0]
new_string = first_letter.upper() + input_string[1:]
print(new_string)


word = input()
p = word[0].upper()
c = word[1:]
new = p + c
print(new)


s = input()
s1 = s[0]
if s1.isupper():
	print(s)
else:
	p = s1.upper()
	print(p, s[1:], sep='')


woord = input()
klein = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
groot = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']
nieuwwoord = ''
if woord[0] in groot:
	print(woord)
else:
	for i in range(0, 26):
		if woord[0] == klein[i]:
			nieuwwoord = groot[i] + woord[1:len(woord)]
			print(nieuwwoord)
			break


def capitalization(word):
	if word[0].isupper():
		return word
	else:
		reformatted_word = word[0].upper() + word[1:len(word)]
		return reformatted_word
word = input()
print(capitalization(word))


inp = input()
word = inp[0].upper() + inp[1:]
print(word)


str = input()
t = str[0].upper()
print(t, end='')
print(str[1:])


a = input()
if a[0].isupper():
	print(a)
else:
	s = a[0].upper()
	print(s + a[1:])


a = input()
if len(a) <= 1000:
	b = a[0].upper()
	print(b + a[1:len(a)])


text = input()
print('{0}{1}'.format(text[:1].upper(), text[1:]))


n = input()
if n[0].isupper():
	print(n)
else:
	print(n[0].capitalize() + n[1:])


string = input()
print(string[0].upper(), string[1:], sep='')


string = input()
v1 = string[0]
v2 = string[1:]
print(v1.capitalize() + v2)


n = input()
if n[0] >= 'A' and n[0] <= 'Z':
	print(n)
else:
	print(n[0].upper() + n[1:])


word = input()
a = []
if ord(word[0]) > 96:
	a.append(chr(ord(word[0]) - 32))
	for i in range(1, len(word)):
		a.append(word[i])
	for i in range(0, len(a)):
		print(a[i], end='')
else:
	print(word)


f = input()
s = ''
c = f[0]
c1 = c.upper()
c2 = f[1:]
s = c1 + c2
print(s)


def main():
	string = input()
	print(string[0].upper() + string[1:])
main()


x = list(input())
if x[0].islower():
	x[0] = chr(ord(x[0]) - 32)
print(''.join((str(i) for i in x)))


import time

class Profiler(object):

	def __enter__(self):
		self._startTime = time.time()

	def __exit__(self, type, value, traceback):
		print('Elapsed time: {:.3f} sec'.format(time.time() - self._startTime))
s = input()
print(s[0].upper() + s[1:])


word = input()
print('{}{}'.format(word[0].upper(), word[1:]))


x = lambda p: print(p[0].capitalize() + p[1:])
x(input())


string = list(input())
s = ''
if string[0] <= 'z' and string[0] >= 'a':
	string[0] = chr(ord(string[0]) - ord('a') + ord('A'))
for i in range(len(string)):
	s += string[i]
print(s)


a = input()
a1 = a[0]
a2 = a1.upper()
print(a2 + a[1:])


s = input()
if s[0] >= 'a' and s[0] <= 'z':
	s = s[0].capitalize() + s[1:]
print(s)


s = input()
st = s[0:1].capitalize() + s[1:]
print(st)


import math

def capitalization():
	s = input().strip()
	l = len(s)
	if l > math.pow(10, 3):
		print('Bad Entry')
	elif s[0] >= 'A' and s[0] <= 'Z':
		print(s)
	elif s[0] >= 'a' and s[0] <= 'z':
		s1 = s[0].upper() + s[1:]
		print(s1)
capitalization()


i = input()
print(i[0].capitalize() + i[1:])


p = input()
if p[0].islower():
	p = p[0].upper() + p[1:]
print(p)


s = input()
if 97 <= ord(s[0]) <= 122:
	ch = chr(ord(s[0]) - 32)
	s = ch + s[1:]
print(s)


s = input()
k = list(map(str, s.upper()))
l = list(map(str, s))
l[0] = k[0]
for i in range(len(l)):
	print(l[i], end='')


s = str(input())
s_one = ''
first = s[0].upper()
s_one += first
for i in range(1, len(s)):
	s_one += s[i]
print(s_one)


ss = input()
strr = ss[0]
strr = strr.upper()
print(strr, end='')
print(ss[1:])


def main():
	inp = input()
	pr = inp[0].upper() + inp[1:]
	print(pr)
main()


u = input()
print(u[0].upper() + u[1:])


def solve():
	word = input()
	print(word[0].upper() + word[1:])
	return
solve()


def resolve(world):
	world = world[0].upper() + world[1:]
	return world
world = input()
print(resolve(world))


text = list(input())
if text[0].islower():
	text[0] = text[0].upper()
print(''.join(text))


from sys import stdin, stdout
inp = stdin.readline
out = stdout.write
s = inp().strip()
x = s[0].upper() + s[1:]
out(x)


a = input()
s = list(a.upper())
a = s[0] + a[1:]
print(a)


s = input().rstrip()
new = s[0].upper()
new += s[1:len(s)]
print(new)


s = input()
n = int(len(s))
s = list(s)
if ord(s[0]) > 91:
	s[0] = chr(ord(s[0]) - 32)
print(''.join(s))


s = input()
a = s[0].upper()
result = a + s[1:]
print(result)


word = input()
char = word[0]
char2 = char.upper()
new = ''
new += char2
for i in range(1, len(word)):
	new += word[i]
print(new)


ip = input()
n = ip[0].upper()
ip = ip[:0] + ip[1:]
print(n + ip)


s = input()
s = s[0].upper() + s[1:]
s = s + ' '
for i in range(len(s) - 2):
	if s[i] == ' ':
		s = s[:i + 1] + s[i + 1].upper() + s[i + 2:]
s = s[:-1]
print(s)


name = input()
part1 = name[1:]
part2 = name[0:1]
print(part2.capitalize() + part1)


word = input()
if word[0].isupper() == True:
	print(word)
else:
	fir = word[0].upper()
	print(fir + word[1:])


k = input()
h = k[0]
h = h.upper()
j = h + k[1:]
print(j)


word = input()
new_word = ''
if word[0].islower():
	new_word += word[0].upper()
else:
	new_word += word[0]
new_word += word[1:]
print(new_word)


def main():
	inp = input()
	out = inp[0].upper() + inp[1:]
	print(out)
main()


a = input()
c = a.capitalize()
print(a[:0] + c[0] + a[1:])


S = input()
A = S[0].upper()
print(A + S[1:])


a = input()
print(a[0].lower().upper() + '' + a[1:])


s = input()
k = s[0]
if ord(k) > 90:
	k = k.upper()
print(k, end='')
print(s[1:len(s)])


_str = input()
c = _str[0]
_str = _str[1:]
if c >= 'a':
	c = chr(ord(c) - 32)
print('{0}{1}'.format(c, _str))


word = input()
first_letter = word[0].upper()
remian = word[1:]
print(first_letter + remian)


x = list(input())
x[0] = x[0].upper()
string = ''
for i in x:
	string += i
print(string)


n = input()
l = n[0]
print(l.upper() + n[1:])


w = input()
s = ''
i = 0
while i < len(w):
	s = s + w[i]
	if i == 0:
		s = s.upper()
	i += 1
print(s)


s = input()
a = s[:1].upper() + s[1:]
print(a)


input = input()
li = list(input)
out = li[0].upper()
li.pop(0)
output = ''.join([i for i in li])
print(out + output)


L = list(input())
s = L[0]
del L[0]
s1 = ''.join(L)
print(s.capitalize() + s1)


class WordCapitalization:

	@staticmethod
	def solve(word):
		return '%s' % (word[0].upper() + word[1:])

def main():
	word = input()
	wc = WordCapitalization()
	print(wc.solve(word))
main()


a = input()
if ord(a[0]) > 90:
	b = a[0].upper()
	print(b, a[1:], sep='')
else:
	print(a)


kata = input()
hasil = ''
for i in range(len(kata)):
	if i == 0:
		hasil += str.upper(kata[i])
	else:
		hasil += kata[i]
print(hasil)


text = list(input().rstrip())
text[0] = text[0].upper()
print(''.join(text))


s = input()
new_s = s[0].upper() + s[1:]
print(new_s)


s = input()
alth = 'QWERTYUIOPASDFGHJKLZXCVBNMQWERTYUIOPASDFGHJKLZXCVBNM'
alth2 = 'qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM'
print(alth[alth2.find(s[0])] + s[1:])


x = input()
if x[0] == x[0].lower():
	print(x[0].upper() + x[1:])
else:
	print(x)


def myfunc(st):
	return st.replace(st[0], st[0].upper(), 1)
s = input()
print(myfunc(s))


n = input()
x = n[0].upper() + n[1:]
print(x)


import sys

class Scanner:

	def __init__(self):
		self.current_tokens = []

	def remaining_tokens(self):
		return len(self.current_tokens)

	def nextline(self):
		assert self.remaining_tokens() == 0, 'Reading next line with remaining tokens'
		return input()

	def nexttokens(self):
		return self.nextline().split()

	def nexttoken(self):
		if len(self.current_tokens) == 0:
			self.current_tokens = self.nexttokens()
		assert self.remaining_tokens() > 0, 'Not enough tokens to parse.'
		return self.current_tokens.pop(0)

	def nextints(self, n=-1):
		if n == -1:
			return list(map(int, self.nexttokens()))
		else:
			return (self.nextint() for i in range(n))

	def nextint(self):
		return int(self.nexttoken())

def quit():
	sys.exit(0)
stdin = Scanner()
nextint = stdin.nextint
nextints = stdin.nextints
nextline = stdin.nextline
w = nextline()
r = ''
for i in range(len(w)):
	if i == 0:
		r += w[i].upper()
	else:
		r += w[i]
print(r)


n1 = input()
s = ''
c = 1
for i in n1:
	if c == 1:
		s = s + i.upper()
		c = 0
	else:
		s = s + i
print(s)


st1 = input()
word = st1[0].upper()
print(word + st1[1:])


tmp = input()
print(tmp[0].upper() + tmp[1:])


n = input()
k = n[0]
m = list(n)
m[0] = k.upper()
s = ''
print(s.join(m))


n = input()
n = n[:1].upper() + n[1:]
print(n)


(a, *b) = input()
print(a.upper() + ''.join(b))


s = input()
t = ''
if ord(s[0]) >= 97:
	t += chr(ord(s[0]) - 32)
else:
	t += s[0]
t += s[1:]
print(t)


string = input()
string1 = string[0].capitalize()
string2 = string[1:]
print(string1 + string2)


str = input()
res = str[0].upper() + str[1:]
print(res)


l = input()
p = l[0].capitalize()
print(p + l[1:])


word = input()
list_new_word = list(word)
list_new_word[0] = list_new_word[0].capitalize()
new_word = ''
length = len(list_new_word)
for i in range(length):
	new_word = new_word + list_new_word[i]
print(new_word)


s1 = ''
s1 = input()
s2 = ''
count = 0
for j in s1:
	if count == 0:
		s2 = j.upper()
		count = 1
	else:
		s2 = s2 + j
print(s2)


s = [i for i in input()]
s[0] = s[0].upper()
print(*s, sep='')


words = input()
newwords = ''
a = words[0].upper()
newwords = a + words[1:]
print(newwords)


s = input()
t = s[0]
if ord(s[0]) >= ord('a') and ord(s[0]) <= ord('z'):
	t = chr(ord(s[0]) - 32)
print(t, end='')
for i in range(1, len(s)):
	print(s[i], sep='', end='')


word = [ch for ch in input()]
word[0] = word[0].upper()
print(''.join(word))


text = input()
capital = text[0].capitalize()
print(capital + text[1:])


import sys

def solve():
	s = input()
	print(s[0].upper() + s[1:])
solve()


def go(word) -> str:
	asc = ord(word[0])
	if asc < 97:
		return word
	return chr(asc - 32) + word[1:]
print(go(input()))


n = input()
u = n[0].upper()
for i in range(1, len(n)):
	u = u + n[i]
print(u)


x = input()
s = x[0]
a = s.upper() + x[1:]
print(a)


slovo = input()
ogurchik = slovo.title()
print(ogurchik[0], slovo[1:], sep='')


s = input()
t = s[0].upper()
an = t + s[1:]
print(an)


s = input()
if len(s) <= 1000:
	print(s[0].title(), end='')
	for i in range(1, len(s)):
		print(s[i], end='')


S = input()
n = len(S)
ans = ''
for i in range(n):
	if i == 0:
		ans += S[i].capitalize()
	else:
		ans += S[i]
print(ans)


from collections import deque
import datetime
import math
import os
import random
import re
import sys

def main():
	s = str(input())
	ans = s[0].upper() + s[1:3000]
	print(ans)
main()


temp_str = input()
print(temp_str[0].upper() + temp_str[1:])


s = input()
l = len(s)
print(s[0].capitalize() + s[1:l])


from functools import *
s = input()
l = list(s)
l[0] = l[0].upper()
r = reduce(lambda i, j: i + j, l)
print(r)


s = input()
c = ''
a = s[0:1]
b = a.upper()
c = b + s[1:len(s)]
print(c)


n = str(input())
if n[0].islower():
	f = n[0].upper()
	print(f + n[1:len(n)])
else:
	print(n)


nums = input()
f = nums[:1]
r = nums[1:]
print(f.upper() + r)


inp = list(input())
ii = inp[0].upper()
inp.remove(inp[0])
inp.insert(0, ii)
for item in inp:
	print(item, end='')


S = input()
x = S[0]
S1 = ''
if ord(S[0]) > 96:
	x = S[0].upper()
	z = S[1:len(S):1]
	S1 = x + z
	print(S1)
else:
	print(S)


mystring = input()
print(mystring[0].upper() + mystring[1:])


def s(strr):
	a = strr[0]
	b = strr[1:]
	a = a.upper()
	strr = a + b
	print(strr)
s(input())


s = input()
beg = s[0]
s = s.replace(s[0], s[0].upper(), 1)
print(s)


def solve_the_problem():
	word = input()
	word_as_list = list(word)
	word_as_list[0] = word[0].upper()
	print(''.join(word_as_list))
solve_the_problem()


import sys
from math import sqrt
inp = sys.stdin.readline
read = lambda : list(map(int, inp().split()))

def solve():
	s = inp()
	print(s[0].upper() + s[1:])
solve()


word = list(input(''))
first = word[0]
newfirst = first.upper()
y = newfirst
del word[0]
for i in range(len(word)):
	y += str(word[i])
print(y)


p = input()
w = []
for i in p:
	w.append(i)
w[0] = w[0].upper()
for j in w:
	print(j, end='')


s = input()
a = []
for i in s:
	a.append(i)
a[0] = a[0].upper()
z = ''.join(a)
print(z)


S = input()
print(S[0].upper(), end='')
print(S[1:])


ip = input()
if len(ip) > 0 and ip[0].islower():
	print(ip[0].upper() + ip[1:])
else:
	print(ip)


str = input()
n = len(str)
list = []
for i in range(n):
	list.append(str[i])
list[0] = list[0].upper()
s = ''.join(list)
print(s)


data = list(input())
data[0] = chr(ord(data[0]) - 32) if data[0] >= 'a' and data[0] <= 'z' else data[0]
print(''.join(data))


str = input()
flag = 0
if str[0].islower():
	first = str[0].upper()
	flag = 1
if flag:
	print(first, end='')
	print(str[1:])
else:
	print(str)


s = input()
a = list(s)
k = a[0].upper()
print(k, end='')
for i in range(1, len(s)):
	print(s[i], end='')


s = input()
if s[0].islower():
	k = s[0].swapcase()
	print(k + s[1:])
else:
	print(s)


stt = str(input())
print(stt[0].upper() + stt[1:])


a = input()
if a[0].islower() == True:
	print(a.replace(a[0], a[0].upper(), 1))
else:
	print(a)


x = input()
if x[0].islower():
	y = x.split(x[0], 1)
	y[0] = x[0].upper()
	y = ''.join(y)
	print(y)
else:
	print(x)


str1 = input()
str1 = list(str1)
if str1[0].islower() == 1:
	str1[0] = str1[0].upper()
strx = ''
print(strx.join(str1))


n = input()
m = n[0].upper()
firstly = True
for i in n:
	if firstly == True:
		print(m, end='')
		firstly = False
	else:
		print(i, end='')


s = input()

def capitalize(str):
	return str[:1].capitalize() + str[1:]
print(capitalize(s))


word = input()
small = 'abcdefghijklmnopqrstuvwxyz'
cap = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
if word[0] in small:
	print(cap[small.index(word[0])] + word[1:])
else:
	print(word)


n = list(input())
a = n[0]
b = a.upper()
n[0] = b
print(''.join(map(str, n)))


strin = str(input())
num = len(strin)
x = strin[0].upper() + strin[1:num]
print(x)


s = input()
print(chr(ord(s[0]) & ~32) + s[1:])


string = input('')
letter = string[0].capitalize()
slice = string[1:]
capitalize_string = letter + slice
print(capitalize_string)


t = input()
if ord(t[0]) >= 65 and ord(t[0]) <= 90:
	print(t)
else:
	k = ord(t[0]) - 97 + 65
	print(chr(k), end='')
	print(t[1:])


s = input()
lis = list(s)
if lis[0] == lis[0].upper():
	print(s)
else:
	lis[0] = lis[0].upper()
	for i in range(len(lis)):
		print(lis[i], end='')


w = input()
c = w[0].capitalize()
print(c + w[1:])


n = input()
if n[0].isupper() is True:
	print(n)
else:
	big_first_letter = n[0].upper()
	new_word = big_first_letter + n[1:]
	print(new_word)


app = input()
pri = app[0].upper() + app[1:]
print(pri)


s = str(input())
s1 = ''
s1 = s1 + s[0].upper()
for i in range(1, len(s)):
	s1 = s1 + s[i]
print(s1)


from sys import stdin
a = stdin.readline().strip()
print(a[0].upper() + a[1:])


string = input()
lst = string[1:]
fst = string[0]
res = fst.upper() + lst
print(res)


s = list(input())
s[0] = s[0].upper()
print(''.join((str(x) for x in s)))


a = input()
if not 65 <= ord(a[0]) <= 90:
	a = chr(ord(a[0]) - 32) + a[1:]
print(a)


data = input()
print(data[0].upper() + data[1:])


word = list(input())
if ord(word[0]) >= 97:
	word[0] = chr(ord(word[0]) - 32)
for i in range(len(word)):
	print(word[i], end='')


s = input()
l = len(s)
o = s[0].upper()
s = s[1:l]
o += s
print(o)


s = str(input())
s2 = str()
if s[0].isupper() == 1:
	print(s)
else:
	s2 = s[0].upper()
	for x in range(len(s) - 1):
		s2 = s2 + s[x + 1]
	print(s2)


def check(st):
	if st[0].isupper():
		return st
	else:
		st = st[0].upper() + st[1:]
		return st
st = input()
print(check(st))


my_string = input()
first = my_string[0:1:1]
first = first.upper()
second = my_string[1:]
print(first + second)


str = input()
strl = list(str)
if ord(strl[0]) >= 65 and ord(strl[0]) <= 90:
	pass
else:
	strl[0] = chr(ord(strl[0]) - 32)
for i in strl:
	print(i, end='')


n = input()
z = n[0].title()
print(z + n[1:])


import math
import collections
import bisect
import heapq
import time
import random
import itertools
import sys
s = input()
print(s[0].upper() + s[1:])


n = list(str(input()))
n[0] = n[0].upper()
print(''.join(n))


my_text = input()
first_char = my_text[0]
first_char = first_char.upper()
my_text = first_char + my_text[1:]
print(my_text)


word = input()
list = []
for letter in word:
	list.append(letter)
list[0] = list[0].upper()
for i in range(len(word)):
	print(list[i], end='')


x = input()
a = x[0]
up = a.upper()
x = x.replace(x[0], up, 1)
print(x)


s = input()
if s[0] == s[0].upper():
	print(s)
else:
	t = []
	for i in s:
		t.append(i)
	s = t
	s[0] = s[0].upper()
	print(''.join(s))


def max1(a):
	p = a[0]
	for x in a:
		if x > p:
			p = x
	return p

def prlist(a):
	for x in a:
		print(x, end=' ')
a = input()
print(a[0].upper() + a[1:len(a)])


s = input()
x = s[0]
y = x.upper()
z = s[1:]
print(y + z)


from sys import stdin, stdout, exit as sys_ret
(f_input, f_print, f_flush) = (stdin.readline, stdout.write, stdout.flush)
string = f_input()
f_print(string[0].upper() + string[1:])


string1 = input()
print(string1[0].upper() + string1[1:])


s = list(input())
print(s[0].capitalize(), end='')
del s[0]
print(''.join(s))


inp = str(input())
if len(inp) > 10 ** 3:
	exit(0)
else:
	firstletter = inp[0]
	print(firstletter.upper() + inp[1:])


a = input()
b = int(ord(a[0]))
s = []
c = len(a)
if b > 90:
	print(chr(b - 32) + a[1:c])
else:
	print(a)


l = input()
print('{0}{1}'.format(l[0].upper(), l[1:]))


x1 = input()
x2 = x1[0].upper()
print(x2 + x1[1:])


def upcase_first_letter(s):
	return s[0].upper() + s[1:]
x = input()
print(upcase_first_letter(x))


a = input()
try:
	print(a[0].upper() + a[1:])
except:
	print(a.upper())


inputString = list(input())
inputString[0] = inputString[0].upper()
print(''.join(inputString))


word = input()
print(''.join(word[0].capitalize() + word[1:]))


s = str(input())
c = len(s)
a = s[0].upper()
print(a + s[1:c])


word = input()
l = word[0].upper()
full = l + word[1:]
print(full)


n = input()
print(n[0].title() + n[1:len(n)])


temp = input()
for i in range(0, len(temp)):
	if i == 0:
		print(temp[0].upper(), end='')
	else:
		print(temp[i], end='')


t = input()
n = t[0]
print(n.capitalize(), t[1:], sep='')


s = input()
if s[0].isupper():
	print(s)
elif s[0].islower():
	l = list(s)
	l.pop(0)
	b = s[0].upper()
	l.insert(0, b)
	print(''.join(l))


k = input()
ki = k[0].upper()
k = ki + k[1:]
print(k)


from collections import OrderedDict
a = input()
print(a[0].upper(), end='')
if len(a) > 1:
	print(a[1:])


w = input()
W = w[0].upper()
print(w.replace(w[0], W, 1))


n = input()
new_s = ''
s = ''
i = 1
while i < len(n):
	new_s = new_s + n[i]
	i += 1
if n[0].isupper():
	s = n[0] + new_s
else:
	d = n[0].capitalize()
	s = d + new_s
print(s)


a = input()
b = a[0].upper()
for x in range(1, len(a)):
	b += a[x]
print(b)


word = str(input())
w = word[:1].capitalize() + word[1:]
print(w)


p = input()
a = p[0].upper()
x = ''
for n in range(1, len(p)):
	x += p[n]
print(a + x)


x = input()
x = x.lstrip()
for i in range(0, len(x)):
	if i == 0:
		print(x[i].upper(), end='')
	else:
		print(x[i], end='')


word = input()
print(word[0].capitalize() + word[1:len(word)])


n = input()
k = ord(n[0])
n = n[1:]
if k > 90:
	k -= 32
k = chr(k)
n = k + n
print(n)


n = input()
if n[0] == n[0].upper():
	print(n)
else:
	n = n[0].capitalize() + n[1:]
	print(n)


s = input()
if len(s) == 1:
	print(s[0].upper())
else:
	a = s[0].upper() + s[1:]
	print(a)


s = input()
print(s[0].capitalize(), s[1:], sep='')


string = input()
print(string.replace(string[0], string[0].upper(), 1))


class Solution:

	def solve(self, string):
		ch = string[0]
		withoutFirstChar = string[1:]
		chAscii = ord(ch)
		if chAscii >= 97 and chAscii <= 122:
			ch = chr(chAscii - 32)
		return ch + withoutFirstChar
sol = Solution()
string = input().strip()
print(sol.solve(string))


a = 'QWERTYUIOPASDFGHJKLZXCVBNM'
b = 'qwertyuiopasdfghjklzxcvbnm'
s = input()
print(s if s[0] in a else a[b.find(s[0])] + s[1:])


n = str(input())
print(n[0].capitalize(), end='')
print(n[1:len(n)])


word = input()
plist = list(word)
plist.pop(0)
no_first = ''.join(plist)
capitalized = word[0].upper() + no_first
print(capitalized)


word = input()
word_c = word.upper()
word = list(word)
word[0] = word_c[0]
word2 = ''.join(word)
print(word2)


s = input()
if ord(s[0]) > 96:
	s = '%c%s' % (chr(ord(s[0]) - 32), s[1:])
print(s)


word = input()
a1 = word[0]
a = a1.upper()
for i in range(1, len(word)):
	a = a + word[i]
print(a)


strg = input()
str1 = strg.title()
print(str1[0] + strg[1:])


s = input().strip()
print(s[0].capitalize() + s[1:])


string = list(input())
if 'a' <= string[0] <= 'z':
	string[0] = chr(ord(string[0]) - ord('a') + ord('A'))
print(''.join(string))


word = input()
if len(word) <= 1000:
	print(word[0].upper(), end='')
	print(word[1:len(word)])


v = input()
v2 = v[0].upper()
v1 = v[1:]
print(v2 + v1)


x = input()
s = 1
ans = ''
for i in x:
	if s == 1:
		ans = ans + '{}'.format(i.upper())
		s = 2
		continue
	ans = ans + '{}'.format(i)
print(ans)


s = input()
a = ''
if len(s) <= 10 ** 3:
	for i in range(0, len(s)):
		if i == 0:
			res = s[i].upper()
			a += res
		else:
			a += s[i]
	print(a)


a = input().strip()
if ord('A') <= ord(a[0]) <= ord('Z'):
	print(a)
else:
	print(chr(ord(a[0]) - 32), a[1:], sep='')


x = input()
length = len(x)
if x[0].isupper():
	print(x)
else:
	print(x[0].upper() + x[1:length])


x = str(input())
a = len(x)
c = str(x[0].upper())
print(c, end='')
for i in range(a - 1):
	print(x[i + 1], end='')


word = input()

def change(word):

	def changeword(s):
		number = ord(s)
		if 65 <= number <= 90:
			s = s
		else:
			s = chr(number - 32)
		return s
	word = changeword(word[0]) + word[1:]
	return word
word = change(word)
print(word)


str = input()
a = []
ans = ''
for i in range(len(str)):
	if i == 0:
		a.append(str[i].capitalize())
	else:
		a.append(str[i])
	ans = ans + a[i]
print(ans)


s = input()
a = list(s)
a[0] = a[0].upper()
print(''.join(a))


string = input()
newOne = ''
newOne = string[0].upper()
newOne += string[1:]
print(newOne)


word = input()
mylist = list(map(str, word))
mylist[0] = mylist[0].upper()
string = ''.join(mylist)
print(string)


def main():
	s = input()
	output = s[0].upper() + s[1:]
	print(output)
main()


word = input()
firstlet = word[0].capitalize()
word = word[1:]
ans = firstlet + word
print(ans)


str = input('')
str2 = ''
for i in range(len(str)):
	if i == 0:
		g = str[i]
		if g in 'ABCDEFGHIJKLMNOPQRSTUVWXYZ':
			str2 += g
		else:
			n = chr(ord(g) - 32)
			str2 += n
	else:
		str2 += str[i]
print(str2)


while True:
	ch = input('')
	if len(ch) >= 1 and len(ch) <= 10 ** 3:
		break
print(ch[0].upper() + ch[1:])


a = input()
w = []
for i in a:
	w.append(i)
w[0] = w[0].upper()
print(''.join(w))


a = input()
d = ' '
a.split(' ')
d = a[0]
if d.isupper():
	print(a)
else:
	print(d.upper() + a[1:])


string = input()
print('{}{}'.format(string[0].upper(), string[1:]))


S = input()
X = S[0]
X = X.upper()
print(X + S[1:len(S)])


try:
	s = input()
	s = list(s)
	s[0] = s[0].upper()
	print(''.join(s))
except:
	pass


n = str(input())
v = n[0]
strs = v.upper() + n[1:]
print(strs)


n = input()
m = ''
i = 1
while i <= len(n) - 1:
	m += str(n[i])
	i += 1
print(n[0].upper() + m)


import string
n = input()
j = ''
l = string.capwords(n[0])
c = ['Q', 'W', 'E', 'R', 'T', 'Y', 'U', 'I', 'O', 'P', 'A', 'S', 'D', 'F', 'G', 'H', 'J', 'K', 'L', 'Z', 'X', 'C', 'V', 'B', 'N', 'M']
if n[0] in c:
	print(n)
else:
	for i in n[1:]:
		j += i
	print(str(l) + str(j))


x = input()
if x[0].isupper() == True:
	print(x)
else:
	print(x[0].upper() + x[1:len(x)])


word = input()
word = list(word)
popped = word.pop(0)
popped = popped.upper()
word.insert(0, popped)
final = ''
for char in word:
	final = final + char
print(final)


a = input()
if 96 < ord(a[0]) < 123:
	a = str(chr(ord(a[0]) - 32)) + a[1:]
	print(a)
else:
	print(a)


a = list(input())
if a[0].islower():
	a[0] = a[0].upper()
for i in a:
	print(i, end='')


c = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']
b = 'abcdefghijklmnopqrstuvwxyz'
a = str(input())
if b.find(a[0]) >= 0:
	a = list(a)
	a[0] = c[b.find(a[0])]
	k = 0
	d = ''
	while k < len(a):
		d = d + a[k]
		k = k + 1
	print(d)
else:
	print(a)


x = input()
s = ''
if x[0].isupper():
	print(x)
else:
	y = x[0].upper()
	for i in range(1, len(x)):
		s += x[i]
	print(y, s, sep='')


phrase = input()
print(phrase[0].upper() + phrase[1:])


def capitalize(st: str):
	return st[0].capitalize() + st[1:] if len(st) > 0 else st
print(capitalize(input()))


s = input()
t = s
b = len(t)
s = s.upper()
r = ''
for i in range(b):
	if i == 0:
		r = r + s[i]
	else:
		r = r + t[i]
print(r)


text = input()
newtext = text[0].upper() + text[1:]
print(newtext)


word = input()
x = word[0].upper()
print(x + word[1:])


word = input()
neword = []
c = 0
for a in word:
	c += 1
	if c == 1:
		neword.append(a.upper())
	else:
		neword.append(a)
w = ''.join(neword)
print(w)


s = input()
temp = s[0].upper()
print(temp + s[1:])


w = input()
s = w[0]
g = s.upper() + w[1:]
print(g)


word = str(input())
a = word[0]
b = a.upper()
word = word[1:]
print(b + word)


S = list(input())
S1 = ''
S[0] = S[0].upper()
for i in range(len(S)):
	S1 += S[i]
print(S1)


s = input()
if s[0] >= 'a' and s[0] <= 'z':
	t = ord(s[0])
	t = t - 32
	y = chr(t)
	s = y + s[1:]
print(s)


word = input()
if word[0].islower():
	print(word[0].upper(), end='')
else:
	print(word[0], end='')
print(word[1:])


s = input().strip()
l_s = list(s)
l_s[0] = l_s[0].upper()
print(''.join(l_s))


s = input()
if ord(s[0]) >= 97 and ord(s[0]) <= 122:
	d = chr(ord(s[0]) - 32) + s[1:]
	print(d)
else:
	print(s)


s = input()
k = s.capitalize()
print(k[0] + s[1:])


strng = input()
strng = list(strng)
strng[0] = strng[0].upper()
print(''.join(strng))


import sys
import os

def int_array():
	return list(map(int, input().strip().split()))

def str_array():
	return input().strip().split()

def gcd(a, b):
	if b == 0:
		return a
	return gcd(b, a % b)

def take_input():
	if os.environ.get('check'):
		sys.stdin = open('input.txt', 'r')
		sys.stdout = open('output.txt', 'w')
take_input()
s = input()
s1 = ''.join(list(s)[0]).capitalize()
s2 = ''.join(list(s[1:]))
print(s1 + s2)


ip = input()
if ord(ip[0]) > 90:
	ip = chr(ord(ip[0]) - 32) + ip[1:]
print(ip)


s = input()
l = list(s)
a = l[0]
a = a.upper()
l.remove(l[0])
l.insert(0, a)
m = ''.join(l)
print(m)


list_s = list(input())
list_s[0] = list_s[0].upper()
print(''.join(list_s))


def cap(str):
	out = str[0].upper() + str[1:]
	return out
print(cap(input()))


n = input()
if n[0].isupper():
	print(n)
else:
	t = n[0]
	n = n[1:]
	t = t.upper()
	t = t + n
	print(t)


n = input()
b = []
for i in range(1, len(n)):
	b.append(n[i])
print(n[0].upper() + ''.join(b))


n = input()
ex = ''
ex = ex + n[0].upper() + n[1:]
print(ex)


ranga = input()
output_str = ''
output_str += ranga[0].upper()
i = 1
ranga_len = len(ranga)
while True:
	if i == ranga_len:
		break
	output_str += ranga[i]
	i += 1
print(output_str)


a = input()
s = a[0]
x = s.capitalize()
print(x + a[1:])


def main():
	str = input()
	print(str[0].capitalize() + str[1:len(str)])
main()


inputstr = input()
part1 = inputstr[1:]
part2 = inputstr[0]
part2 = part2.upper()
print(part2 + part1)


word = list(input())
if ord(word[0]) >= 97:
	word[0] = chr(ord(word[0]) - 32)
print(''.join(word))


s = input()
a = s[0]
a = a.upper()
s = ''.join([a, s[1:]])
print(s)


f = input()
print(f[:1].upper() + f[1:])


def capitalize(s):
	if ord(s[0]) >= 65 and ord(s[0]) <= 90:
		return s
	else:
		ns = chr(ord(s[0]) - 32) + s[1:len(s)]
		return ns
a = input()
na = capitalize(a)
print(na)


def wordCap(s):
	if ord(s[0]) >= 97:
		return s[0].upper() + s[1:]
	return s
s = input()
print(wordCap(s))


def _281A():
	in_str = input()
	in_str = in_str[0].upper() + in_str[1:]
	print(in_str)
_281A()


q = list(input())
size = sum((c.isalpha() for c in q))
m = 0
while m < size:
	if q[m] == q[0] and m == 0:
		print(q[m].upper(), end='')
		m += 1
	else:
		print(q[m], end='')
		m += 1


N = list(input())
N[0] = N[0].upper()
N = ''.join(N)
print(N)


txt = input()
x = txt[0].upper()
string = x + txt[1:]
print(string)


word = input()
firstLetter = word[0].upper()
print(firstLetter + word[1:])


s = list(input())
s[0] = s[0].upper()
s1 = ''
for ele in s:
	s1 += ele
print(s1)


def newFunction():
	new_String = input()
	print(new_String[0].upper() + new_String[1:len(new_String)])
newFunction()


X = input()
x = []
for i in X:
	x.append(i)
l1 = x[0]
x[0] = l1.upper()
ans = ''.join(x)
print(ans)


s = input()
if s[0].isupper():
	print(s)
else:
	smem = s[0]
	smem = smem.capitalize()
	s = smem + s[1:]
	print(s)


a = input()
if a[0].isupper():
	print(a)
else:
	b = a[0].upper() + a[1:]
	print(b)


a = input()
c = a[0].upper()
if a[0] != c:
	print(c + a[1:])
else:
	print(a)


s = input()
s1 = ''
k = 0
for i in s:
	if k == 0:
		s1 = s1 + i.upper()
		k += 1
	else:
		s1 = s1 + i
print(s1)


string = input()
x = ord('A')
y = ord('Z')
if ord(string[0]) >= x and ord(string[0]) <= y:
	print(string)
else:
	string = string[0].capitalize() + string[1:len(string)]
	print(string)


n = str(input())
s = []
for i in range(len(n)):
	s.insert(i, n[i])
t = n[0]
t = t.upper()
s.remove(n[0])
s.insert(0, t)
s = ''.join(s)
print(s)


a = [i for i in input()]
if a[0] >= 'A' and a[0] <= 'Z':
	print(''.join(a))
else:
	a[0] = chr(ord(a[0]) - (ord('a') - ord('A')))
	print(''.join(a))


inp = str(input())
w = list(inp)
if ord(w[0]) >= 97 and ord(w[0]) <= 123:
	w[0] = chr(ord(w[0]) - 32)
w = ''.join(w)
print(w)


s = input().strip()
p = ''
p += s[0].upper()
p += s[1:]
print(p)


import sys
for line in sys.stdin:
	print(line.replace(line[0], line[0].upper(), 1).rstrip())


word = list(input())
char = word.pop(0).upper()
print(char + ''.join(word))


str = str(input(''))
l = list(str)
s = l[0]
p = s.capitalize()
l[0] = p
x = ''
for i in l:
	x = x + i
print(x)


word = input()
capitalization_word = word[0].upper() + word[1:]
print(capitalization_word)


s = input()
u = s[0].upper()
p = s.replace(s[0], u, 1)
print(p)


a = input(str())
if a[0] == a[0].upper():
	print(a)
else:
	print(a[0].upper() + a[1:len(a)])


i = str(input(''))
sum = i[0].upper()
n = 1
while n < len(i):
	sum = sum + i[n]
	n += 1
print(sum)


a = input()
n = a[:1]
m = a[1:]
r = n.capitalize()
print(r + m)


string = input()
if len(string) > 0 and string[0].islower():
	print(string[0].upper() + string[1:])
else:
	print(string)


s = input()
a = s[0]
b = s[1:]
if a.islower():
	a = a.upper()
print(a + b)


def solve(str):
	return str[0].upper() + str[1:]
s = input()
print(solve(s))


string = input()
f = string[0]
ans = f.upper() + string[1:]
print(ans)


put = input()
print(put[0].upper(), put[1:], sep='')


n = input()
q = ''
for i in range(len(n)):
	if i == 0:
		s = n[i].upper()
		q = q + s
	else:
		q = q + n[i]
print(q)


n = str(input())
line = list(n)
x = list(n)[0].upper()
line[0] = x
y = ''.join(line)
print(y)


str1 = input()
str1 = list(str1)
x = str(str1[0])
x = x.upper()
str1[0] = x
str1 = ''.join(str1)
print(str1)


try:
	s = str(input())
	print(s[:1].upper() + s[1:])
except:
	pass


wrd = input()
print(wrd[0].upper() + wrd[1:len(wrd)])


a = input('')
n = len(a)
index = 0
b = a
if ord(a[0]) > 96:
	while index < n:
		if index == 0:
			b = chr(ord(a[0]) - 32)
		else:
			b = b + a[index]
		index = index + 1
print(b)


a = input()
k = a[0]
m = k.upper()
print(m + a[1:len(a)])


word = list(input())
g = word[0]
word.pop(0)
g = g.upper()
word.insert(0, g)
word = ''.join(word)
print(word)


word = input()
tmp = ''
if word[0].islower() == 1:
	tmp = word[0].upper() + word[1:]
else:
	tmp = word
print(tmp)


word = input()
b = word[0]
word2 = word[1:len(word)]
print(b.upper() + word2)


st = input()
i = 0
for k in st:
	if i == 0:
		print(k.upper(), end='')
		i = i + 1
	else:
		print(k, end='')


s = list(str(input('')))
s.insert(0, s[0].upper())
s.remove(s[1])
space = ''
print(space.join(s))


word = input()
if word[0].isupper() is False:
	word = word[0].upper() + word[1:]
	print(word)
else:
	print(word)


s = input()
b = []
for i in s:
	b.append(i)
b[0] = b[0].upper()
b = ''.join(b)
print(b)


a = input()
w = ''
for items in range(0, len(a)):
	if items == 0:
		w = w + a[items].upper()
	else:
		w = w + a[items]
print(w)


str1 = input()
print(str1[:1].upper() + str1[1:])


a = input()
print(f'{a[0].upper()}{a[1:]}')


string = input()
output = string[0].capitalize()
another = string[1:]
print(output + another)


x = input()
a = []
for i in range(0, len(x)):
	a.append(x[i])
p = a[0].upper()
a[0] = p
c = ''
d = c.join(a)
print(d)


n = str(input())
p = ''.join(n[:1].upper() + n[1:])
print(p)


n = input()
a = ''
if n[0].islower() == True:
	a = n[0].upper()
	n = a + n[1:]
print(n)


word = input()
listt = list(word)
a = listt[0]
a = a.upper()
listt[0] = a
answer = ''.join(listt)
print(answer)


x = input()
y = list(x)
if y[0].isupper() == True:
	print(x)
else:
	y[0] = y[0].capitalize()
	z = ''.join(y)
	print(z)


def capitalise(w):
	op = ''
	op += w[0].upper()
	for i in range(1, len(w)):
		op += w[i]
	print(op)
w = input()
capitalise(w)


text = input()
print(text.replace(text[0], text[0].upper(), 1))


a = list(input())
if ord(a[0]) >= 97:
	a[0] = chr(ord(a[0]) - 32)
print(''.join(a))


s1 = input()
if ord(s1[0]) < 97:
	print(s1)
else:
	l1 = list(s1)
	l1[0] = chr(ord(s1[0]) - 32)
	print(''.join(l1))


x = input('')
x = list(x)
x[0] = x[0].upper()
print(''.join(x))


word = input()
if 'A' <= word[0] <= 'Z':
	print(word)
else:
	print(word[0].upper() + word[1:])


S = input()
sol = S[0].upper() + S[1:]
print(sol)


import string
s = input()
if s[0] in string.ascii_lowercase:
	print(s.upper()[0] + s[1:])
else:
	print(s)


a = input()
if len(a) > 0 and a[0].islower():
	print(a[0].upper() + a[1:])
else:
	print(a)


word = input()
new_word = list(word)
new_word[0] = new_word[0].capitalize()
new_word = ''.join(new_word)
print(new_word)


w = input()
if ord(w[0]) < 91:
	print(w)
else:
	print(chr(ord(w[0]) - 32) + w[1:])


a = input()
temp = a[0].title() + a[1:]
print(temp)


inp = input('')
x = inp[0].upper()
print(x + inp[1:])


a = list(input())
a.insert(0, a.pop(0).capitalize())
print(''.join(a))


s = input()
ans = ''
ans += s[0].upper()
for i in range(1, len(s)):
	ans += s[i]
print(ans)


INPUT = input()
print(INPUT[0].upper() + INPUT[1:])


import string
st = input()
print(st[0].upper() + st[1:])


word = list(input())
o = [word[0].upper()]
for i in word[1:]:
	o.append(i)
print(''.join(o))


word = input()
first_letter = word[0]
first_letter_ascii = ord(first_letter)
if first_letter_ascii >= 97 and first_letter_ascii <= 122:
	first_letter_capital_ascii = first_letter_ascii - 32
	first_letter_capital = chr(first_letter_capital_ascii)
	word = word.replace(first_letter, first_letter_capital, 1)
print(word)


a = str(input())
b = list(a)
c = b[0]
f = c.capitalize()
b.insert(0, f)
del b[1]
e = ''.join(b)
print(e)


mystr = input()
newstr = ''
newstr += mystr[0].upper()
for ch in mystr[1:]:
	newstr += ch
print(newstr)


import sys
input = sys.stdin.readline

def inp():
	return int(input())

def inlt():
	return list(map(int, input().split()))

def insr():
	s = input()
	return list(s[:len(s) - 1])

def invr():
	return map(int, input().split())

def countX(lst, x):
	count = 0
	for ele in lst:
		if ele == x:
			count = count + 1
	return count
n = str(input())
s = n[0].capitalize()
ans = s + n[1:]
print(ans)


a = input()
b = ''
if ord(a[0]) >= 97:
	b = chr(ord(a[0]) - 32)
else:
	b = b + a[0]
for i in range(1, len(a)):
	b = b + a[i]
print(b)


inputString = input()
outputString = inputString[0].upper() + inputString[1:]
print(outputString)


s = input()
l = list(s)
if s[0].islower():
	l[0] = s[0].upper()
print(''.join(l))


string = input()
edit_string = string[0].title()
print(edit_string + string[1:])


str1 = input()
str1 = ' '.join((str1[0].upper() + str1[1:] for str1 in str1.split()))
print(str1)


s = input()
l = s[0]
l = l.upper()
p = l + s[1:]
print(p)


string = input()
b = string.capitalize()
a = b[0]
l = [a]
for i in range(1, len(string)):
	l.append(string[i])
c = ''
for i in l:
	c = c + i
print(c)


cadena = input()
tamanio = len(cadena)
if tamanio < 1000:
	primer = cadena[0:1].capitalize()
	subcad = cadena[1:]
	print(primer + subcad)
else:
	exit


import sys
word = sys.stdin.readline()
letters = [letter for letter in word]
letters[0] = letters[0].upper()
capitalised = ''.join(letters)
sys.stdout.write(capitalised)


w = input()
a = w[0].upper()
w = w[1:]
W = a + w
print(W)


import sys
Get_Char = input()

def main(Get_Char):
	Get_Cap = Get_Char[0].upper()
	Get_Rest_app = Get_Char[1:]
	Final_String_Conv = Get_Cap + Get_Rest_app
	print(Final_String_Conv)
main(Get_Char)


def capi(str):
	first = str[:1].capitalize()
	first = first + str[1:len(str)]
	return first
x = input()
ans = capi(x)
print(ans)


b = input()
a = []
for i in range(len(b)):
	a.append(b[i])
temp = a[0].capitalize()
a[0] = temp
print(''.join(a))


string = input()
if 96 < ord(string[0]) < 123:
	first = chr(ord(string[0]) - 32)
	newString = first + string[1:]
	print(newString)
else:
	print(string)


x = input()
xList = list(x)
xList[0] = xList[0].upper()
xList = ''.join((str(e) for e in xList))
print(xList)


x = input()
print(x[0].upper(), x[1:], sep='')


n = input()
n = list(n)
n[0] = n[0].upper()
res = ''
for c in n:
	res = res + c
print(res)


a = input()
l = ''
if ord(a[0]) in range(97, 123):
	l = chr(ord(a[0]) - 32)
else:
	l = a[0]
for i in range(1, len(a)):
	l = l + a[i]
print(l)


n = input()
n = list(n)
m = n[0].upper()
n[0] = m
for i in range(1):
	for j in range(len(n)):
		print(n[j], end='')
	print('')


word = input()
newWord = word[0].upper() + word[1:]
print(newWord)


n = input('')
first_word = n[0].upper()
print(first_word + n[1:])


a = input()
b = []
for i in a:
	b.append(i)
if b[0].isupper():
	print(a)
else:
	b[0] = b[0].upper()
	for i in b:
		print(i, end='')


strOrg = input()
print(strOrg[0].capitalize() + strOrg[1:])


m = [x for x in input()]
a = ord(m[0])
if a <= 122 and a >= 97:
	a = a - 32
m[0] = chr(a)
o = ''
for n in range(len(m)):
	o = o + m[n]
print(o)


a = input('')
if 97 <= ord(a[0]) <= 122:
	b = chr(ord(a[0]) - 32)
	print(b + a[1:])
else:
	print(a)


word = input()
index = 0
s = str()
a = word[0].upper()
while index < len(word):
	if index == 0:
		s = s + a
	else:
		s = s + word[index]
	index = index + 1
print(s)


def capitalization(word):
	return word[0].upper() + word[1:]

def main():
	word = input()
	print(capitalization(word))
main()


word = input()
s = word[0]
s = s.upper()
word = s + word[1:]
print(word)


word = input()
first_letter = word[0].upper()
new_word = ''
new_word = new_word + first_letter
n = len(word)
for i in range(1, n):
	new_word = new_word + word[i]
print(new_word)


s = input()
if s[0].islower() == True:
	s = s.replace(s[0], s[0].upper(), 1)
print(s)


s = list(input())
if ord(s[0]) in range(ord('a'), ord('z') + 1):
	s[0] = chr(abs(ord(s[0]) - ord('a')) + ord('A'))
print(''.join(s))


w = input()
wl = list(w)
if wl[0].isupper():
	print(w)
elif wl[0].islower():
	wl[0] = wl[0].upper()
	print(''.join(wl))


s = input()
temp = ord(s[0])
if temp >= 97 and temp <= 122:
	s = s[1:]
	s = chr(temp - 32) + s
print(s)


s = input()
c = s[0]
if ord(c) >= 97:
	c = chr(ord(c) - 32)
	print(c + s[1:])
	exit()
print(s)


string = str(input())
print(string if string[0].isupper() else string[0].upper() + string[1:])


t = input()
temp = t[0].upper()
temp_2 = t[1:]
print(temp + temp_2)


s = input()
if s[0] >= 'a' and s[0] <= 'z':
	s1 = s[0].upper()
	print(s1 + str(s[1:len(s)]))
else:
	print(s)


import sys
f = sys.stdin
inp = f.readline().strip()
if inp[0].islower():
	print(inp[0].upper() + inp[1:])
else:
	print(inp)


a = input()
b = []
c = 0
while c < len(a):
	b.append(a[c])
	c = c + 1
d = a[0]
cc = d.title()
e = 1
while e < len(a):
	cc = cc + a[e]
	e = e + 1
print(cc)


cap = input()
first = cap[0]
sec = first.upper()
print(f'{sec}{cap[1:]}')


s = input()
f = s[0].capitalize()
print(f + s[1:len(s)])


a = input()
for i in range(0, len(a)):
	if i == 0 and 97 <= ord(a[i]) <= 122:
		a = list(a)
		a[i] = chr(ord(a[i]) - 32)
print(''.join(a))


import sys
import math
from collections import Counter
from collections import OrderedDict
from functools import reduce
sys.setrecursionlimit(10 ** 6)

def inputt():
	return sys.stdin.readline().strip()

def printt(n):
	sys.stdout.write(str(n) + '\n')

def listt():
	return [int(i) for i in inputt().split()]

def gcd(a, b):
	return math.gcd(a, b)

def lcm(a, b):
	return a * b // gcd(a, b)

def factors(n):
	return set(reduce(list.__add__, ([i, n // i] for i in range(1, int(n ** 0.5) + 1) if n % i == 0)))

def comb(n, k):
	factn = math.factorial(n)
	factk = math.factorial(k)
	fact = math.factorial(n - k)
	ans = factn // (factk * fact)
	return ans
s = inputt()
g = s[:1].upper()
s = g + s[1:]
print(s)


inputword = input()
if inputword[0].isupper():
	print(inputword)
else:
	print(inputword[0].upper() + inputword[1:])


a = str(input())
s = a[0].upper()
d = a[1:]
print(s + d)


import sys
string = input()
string = string[:1].upper() + string[1:]
print(string)


str = str(input())
print(str[0].title() + str[1:])


a = str(input())
a = list(a)
a[0] = str(a[0]).capitalize()
a = ''.join(a)
print(a)


x = input()
y = str()
if ord(x[0]) >= 97:
	y = chr(ord(x[0]) - 32) + x[1:]
else:
	y = x
print(y)


def capitalize(string):
	if 65 <= ord(string[0]) <= 90:
		return string
	else:
		return chr(ord(string[0]) - 32) + string[1:]
string = input()
print(capitalize(string))


s = input()
s1 = [str(x) for x in s]
if s1[0] == s1[0].lower():
	s1[0] = s1[0].upper()
	l = ''.join(s1)
	print(l)
else:
	print(s)


firstString = input()
newString = ''
for i in range(0, len(firstString)):
	if i == 0:
		newString += firstString[i].upper()
	else:
		newString += firstString[i]
print(newString)


s = input()
string = ''
string += s[0].capitalize()
for i in range(1, len(s)):
	string += s[i]
print(string)


num = input()
fun = ''
fun = num[0]
fun = fun.upper()
print(fun + num[1:])


inputstring = input()
if len(inputstring) == 1:
	print(inputstring.upper())
elif ord(inputstring[0]) <= 96:
	print(inputstring)
else:
	first = inputstring[0].upper()
	print(first, end='')
	for i in inputstring[1:]:
		print(i, end='')


x = input()
y = list(x)
a = y[0]
b = a.upper()
y.remove(a)
y.insert(0, b)
print(''.join(map(str, y)))


s = input()
if 64 < ord(s[0]) < 91:
	print(s)
else:
	print(chr(ord(s[0]) - 32) + s[1:])


word = input()
word_1 = word[0].upper()
word = word.replace(word[0], word_1, 1)
print(word)


word = input()
first_leter = word[0]
without_first = word[1:]
first_leter = first_leter.upper()
print(first_leter + without_first)


l = list(map(str, input()))
s = ''
p = []
if ord(l[0]) >= 65 and ord(l[0]) <= 90:
	print(s.join(l))
else:
	m = ord(l[0]) - 32
	for i in range(1, len(l)):
		p.append(l[i])
	print(chr(m) + s.join(p))


inp = input()
if 65 <= ord(inp[0]) and ord(inp[0]) <= 90:
	print(inp)
else:
	k = ord(inp[0]) - 32
	res = chr(k) + inp[1:]
	print(res)


k = input()
m = list(k)
if 65 <= ord(m[0]) <= 90:
	pass
else:
	m[0] = chr(ord(m[0]) - 32)
print(''.join(m))


import sys
word = sys.stdin.readline().strip()
if len(word) == 1:
	print(word.upper())
else:
	print(word[0].upper(), word[1:], sep='')


word = input('')
i = word[0]
i = i.upper()
print(i + word[1:])


s = input()
x = 'c'
l = list(s)
x = s[0]
l[0] = x.upper()
b = ''
for i in l:
	b = b + i
print(b)


s = input('')
l = list(s)
if ord(l[0]) >= 97 and ord(l[0]) <= 122:
	l[0] = l[0].upper()
print(''.join(l))


def Word_Capitalization(test_str):
	res = test_str[0].upper() + test_str[1:]
	print(res)
test_str = input()
Word_Capitalization(test_str)


a = input().strip()
z = ''
z = z + a[0].upper() + a[1:]
print(z)


a = input()
list = [char for char in a]
list[0] = list[0].upper()
print(''.join(list))


address = input()
print(address.replace(address[0], address[0].upper(), 1))


userinput = input()
userlist = list(userinput)
i = 1
n = len(userlist) - 1
output = userinput[0].upper()
while i <= n:
	output = output + userlist[i]
	i += 1
print(output)


s = input()
r = s[0].upper()
y = s[1:]
print(r + y)


word = input()
capt = word[0].upper() + word[1:]
print(capt)


s = str(input())
s = (s[:1].upper() + s[1:]).rstrip()
print(s)


s = input()
st = ''
for i in range(1):
	st += s[i].upper()
for i in range(1, len(s)):
	st += s[i]
print(st)


ip = str(input())
print(ip[0].upper() + ip[1:])


def cap(s):
	s1 = ''
	for item in range(len(s)):
		if item == 0:
			s1 += s[item].upper()
		else:
			s1 += s[item]
	return s1
s = input()
string = cap(s)
print(string)


n = input()
if len(n) > 1:
	if n[0].islower():
		print(n[0].upper() + n[1:])
	else:
		print(n)
elif n.islower():
	print(n.upper())
else:
	print(n)


s = input()
b = s[0].capitalize() + s[1:]
print(b)


import sys
string = input()
sys.stdout.write(str.upper(string[0]))
print(string[1:len(string)])


s_var = input()
li = []
for c in s_var:
	li.append(c)
li[0] = li[0].upper()
word = ''.join(li)
print(word)


d = input()
r = d[0].capitalize() + d[1:]
print(r)


word = input()
characters = list(word)
t = characters[0]
T = t.upper()
characters[0] = T
Word = ''.join(characters)
print(Word)


s = input()
if s[0] >= 'A' and s[0] <= 'Z':
	print(s)
else:
	print(chr(ord(s[0]) - 32), end='')
	for i in range(1, len(s)):
		print(s[i], end='')


mass = input()
print(mass[0].upper() + mass[:0] + mass[1:])


the_input = input()
print(the_input[0].upper() + the_input[1:])


def cap(str):
	if len(str) > 0 and str[0].islower():
		return str[0].upper() + str[1:]
	return str
str = input()
print(cap(str))


name = input('')
a = name[0].upper()
print(a + name[1:])


x = input()
if x[0].islower():
	print(x[0].upper() + x[1:])
else:
	print(x)


A = input()
t = ''
for i in range(len(A)):
	if i == 0:
		t += A[0].upper()
	else:
		t += A[i]
print(t)


parola = input()
print(parola[0].upper() + parola[1:])


myString = input()
if myString[0].isupper():
	print(myString)
else:
	result = list(myString)
	result[0] = result[0].upper()
	print(''.join(result))


n = list(input())
n[0] = n[0].title()
print(''.join(n))


import sys, re, math
from collections import deque, defaultdict, Counter, OrderedDict
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from heapq import heappush, heappop, heapify, nlargest, nsmallest

def STR():
	return list(input())

def INT():
	return int(input())

def MAP():
	return map(int, input().split())

def LIST():
	return list(map(int, input().split()))

def list2d(a, b, c):
	return [[c] * b for i in range(a)]

def sortListWithIndex(listOfTuples, idx):
	return sorted(listOfTuples, key=lambda x: x[idx])

def sortDictWithVal(passedDic):
	temp = sorted(passedDic.items(), key=lambda kv: (kv[1], kv[0]))[::-1]
	toret = {}
	for tup in temp:
		toret[tup[0]] = tup[1]
	return toret

def sortDictWithKey(passedDic):
	return dict(OrderedDict(sorted(passedDic.items())))
INF = float('inf')
mod = 10 ** 9 + 7
s = input()
first = s[0]
if ord(first) >= 65 and ord(first) <= 90:
	print(s)
else:
	first = chr(ord(first) - 32)
	print(first + s[1:])


l = list(input())
ans = []
ans.append(l[0].capitalize())
ans.extend(l[1:])
print(*ans, sep='')


test = input()
first = test[0].upper() + test[1:]
print(first)


def WordCapitalization():
	word = input().strip()
	return word[0].upper() + word[1:]
a = WordCapitalization()
print(a)


a = input()
n = len(a)
b = [0] * n
for i in range(n):
	b[i] = a[i]
c = b[0]
c = c.upper()
print(c, end='')
for p in range(n - 1):
	print(b[p + 1], end='')


class CodeforcesTask281ASolution:

	def __init__(self):
		self.result = ''
		self.s = ''

	def read_input(self):
		self.s = input()

	def process_task(self):
		self.result = self.s[:1].upper() + self.s[1:]

	def get_result(self):
		return self.result
Solution = CodeforcesTask281ASolution()
Solution.read_input()
Solution.process_task()
print(Solution.get_result())


e = input()
s = e[0].upper()
z = ''
z = s + e[1:len(e)]
print(z)


mot = input()
print(mot[0].upper() + mot[1:])


x = input()
y = x[1:]
if ord(x[0]) > 96:
	z = chr(ord(x[0]) - 32)
	print(z + y)
else:
	print(x)


n = str(input())
new_str = ''
for i in range(1, len(n)):
	new_str += n[i]
print(n[0].upper() + new_str)


ch = input()
if ch[0] == ch[0].upper():
	print(ch)
else:
	print(chr(ord(ch[0]) - 32) + ch[1:])


w = input()
if w[0].isupper():
	print(w)
else:
	print(w[0].upper(), w[1:], sep='')


s = input()
m = []
if ord(s[0]) >= 97 and ord(s[0]) <= 122:
	m.append(chr(ord(s[0]) - 32))
	print(m[0] + s[1:])
else:
	print(s)


word = input()
l = word[0]
new = ''
new += l.upper()
for i in range(1, len(word)):
	new += word[i]
print(new)


import string
n = input()
x = string.capwords(n)
res = n[1:len(n)]
print(n[0].capitalize() + res)


s1 = input()
t = ord(s1[0])
if ord(s1[0]) >= 97 and ord(s1[0]) <= 122:
	t = ord(s1[0]) - 32
print(chr(t), end='')
for i in range(1, len(s1)):
	print(s1[i], end='')


w = input()
print(w[0].capitalize() + w[1:len(w)])


word = input()
x = ''
if word[0].islower():
	print(word[0].upper() + word[1:len(word)])
else:
	print(word)


import string

def sx():
	x = input()
	y = x[0].upper() + x[1:]
	print(y)
sx()


sr = input()
print(sr[0].upper() + sr[1:])


str = input()
if len(str) < 10 ** 3 and str.isalpha():
	if str.istitle():
		print(str)
	elif str.istitle() == False:
		firstsimvol = str[0]
		firstsimvol = firstsimvol.title()
		str = firstsimvol + str[1:]
		print(str)


def mod():
	x = input()
	f = []
	if len(x) == 1:
		print(x.upper())
	else:
		for i in range(len(x)):
			if i == 0:
				continue
			else:
				f.append(x[i])
		for j in range(len(x)):
			if j <= 0:
				n = x[j].upper()
				z = n
			else:
				c = f.insert(0, z)
				break
		print(''.join(f))
mod()


import os
import sys
from math import *
from io import BytesIO, IOBase

def vsInput():
	sys.stdin = open('input.txt', 'r')
	sys.stdout = open('output.txt', 'w')

def array():
	return [int(i) for i in input().split()]
BUFSIZE = 8192

class FastIO(IOBase):
	newlines = 0

	def __init__(self, file):
		self._fd = file.fileno()
		self.buffer = BytesIO()
		self.writable = 'x' in file.mode or 'r' not in file.mode
		self.write = self.buffer.write if self.writable else None

	def read(self):
		while True:
			b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
			if not b:
				break
			ptr = self.buffer.tell()
			(self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr))
		self.newlines = 0
		return self.buffer.read()

	def readline(self):
		while self.newlines == 0:
			b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
			self.newlines = b.count(b'\n') + (not b)
			ptr = self.buffer.tell()
			(self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr))
		self.newlines -= 1
		return self.buffer.readline()

	def flush(self):
		if self.writable:
			os.write(self._fd, self.buffer.getvalue())
			(self.buffer.truncate(0), self.buffer.seek(0))

class IOWrapper(IOBase):

	def __init__(self, file):
		self.buffer = FastIO(file)
		self.flush = self.buffer.flush
		self.writable = self.buffer.writable
		self.write = lambda s: self.buffer.write(s.encode('ascii'))
		self.read = lambda : self.buffer.read().decode('ascii')
		self.readline = lambda : self.buffer.readline().decode('ascii')
(sys.stdin, sys.stdout) = (IOWrapper(sys.stdin), IOWrapper(sys.stdout))
input = lambda : sys.stdin.readline().rstrip('\r\n')
s = input()
print(s[0].upper(), s[1:], sep='')


s = list(input())
s[0] = s[0].upper()
for i in s:
	print(i, end='')


s = input()
c = s.capitalize()
print(c[0] + s[1:])


n = input()
x = ''
x += n[0]
z = x
z = z.upper()
y = ''
y += y + z + n[1:]
print(y)


s = input()
if len(s) > 1:
	print(s[0].capitalize() + s[1:-1] + s[-1])
else:
	print(s[0].capitalize())


n = input()
for i in range(len(n)):
	if i == 0:
		if ord(n[0]) < 96:
			print(n[0], end='')
		else:
			print(chr(ord(n[0]) - 32), end='')
	else:
		print(n[i], end='')


import math
import os
import random
import re
import sys
A = input()
b = A[0].upper() + A[1:]
print(b)


userInput = input()
string = list(userInput)
if userInput[0].isupper() == True:
	print(userInput)
else:
	firstLetter = userInput[0]
	upperCasedLetter = firstLetter.upper()
	string[0] = upperCasedLetter
	answer = ''.join(string)
	print(answer)


w = input()
w1 = w[1:]
w2 = w[0]
w3 = w2.upper()
w4 = w3 + w1
print(w4)


inputstring = input()
cap = inputstring[0].upper()
print(cap + inputstring[1:])


def calc(s):
	f = s[0].upper()
	return f + s[1:]
s = input()
print(calc(s))


given = input()
print(given[0].upper() + given[1:])


a = input()
one = a[0:1].upper()
two = a[1:]
print(one + two)


word = input()
p1 = word[0]
p2 = word[1:]
print(p1.capitalize() + p2)


n = input()
if ord(n[0]) > 95:
	print(chr(ord(n[0]) - 32), n[1:], sep='')
else:
	print(n)


string = input()
stringnew = string[0].upper() + string[1:]
print(stringnew)


string = input()
final = string[0].upper() + string[1:]
print(final)


s = input()
if s == '':
	print(s)
else:
	s = list(s)
	firstletter = s[0].upper()
	s.pop(0)
	print(firstletter + ''.join(s))


x = input('')
print(x[0].upper(), end='')
print(x[1:])


long_string = input()
print(long_string[0].upper() + long_string[1:])


s = input()
r = s[:1:1]
e = r.upper()
print(e + s[1::1])


s = input()
if s[0].isupper():
	print(s)
else:
	b = s[0].upper()
	print(b + s[1:])


word = input()
chara_1 = word[0]
if chara_1 == chara_1.upper():
	print(word)
else:
	print(chara_1.upper() + word[1:])


s = input()
a = [i for i in s]
a[0] = a[0].upper()
print(''.join(a))


text = input()
lis = []
if text[0].isupper():
	print(text)
if text[0].islower():
	for elem in text:
		lis.append(elem)
	lis[0] = lis[0].upper()
print(''.join(lis))


string = input()
n = len(string)
for i in range(n):
	if i == 0:
		x = str.upper(string[0])
		print(x, end='')
		continue
	else:
		print(string[i], end='')
print()


t = list(input())
a = t[0]
a = a.upper()
t[0] = a
print(*t, sep='')


import sys
w = sys.stdin.readline()
print(str(w[0].upper() + w[1:]))


def wordcap(s):
	if ord(s[0]) >= 97:
		first = chr(ord(s[0]) - 32)
	else:
		first = s[0]
	return first + s[1:]
s = input().strip()
print(wordcap(s))


string = list(input())
first = string[0]
none = None
x = first.upper()
del string[0]
print(x + ''.join(string))


string = input()
k = string[0].upper()
print(k + string[1:])


S = input()
S2 = S[0].upper()
print(S2 + S[1:])


word = input()
first_letter = word[0:1]
new_word = first_letter.upper() + word[1:]
print(new_word)


a = input()
b = a[0]
c = a[1:]
k = b.isupper()
if k == False:
	b = b.upper()
print(b + c)


n = input()
a = n[0]
c = n[1:]
b = a.upper()
print(b + c)


l = list(input())
l[0] = l[0].upper()
for i in l:
	print(i, end='')


inp = input()
newstring = ''
newstring = newstring + inp[0].upper()
for i in range(1, len(inp)):
	newstring += inp[i]
print(newstring)


def capitalizeFirstLetter():
	word = input()
	result = capitalize(word)
	printToConsole(result)

def capitalize(word):
	result = word[0].upper() + word[1:]
	return result

def printToConsole(word):
	print(word)
capitalizeFirstLetter()


n = input()
s = n[:1]
o = n[1:]
if ord(s) >= 97 and ord(s) <= 122:
	f = chr(ord(s) - 32)
	k = f + o
else:
	k = s + o
print(k)


text = input()
new_text = text[0].capitalize() + text[1:]
print(new_text)


n = input()
if n[0].islower():
	print(n[0].swapcase() + n[1:])
else:
	print(n)


a = input()
len = len(a)
cap = a[0].upper()
print(cap + a[1:len])


x = list(input())
x[0] = x[0].upper()
y = ''
for i in x:
	y += i
print(y)


strs = input()
ass = strs[0].upper()
lists = list(strs)
lists[0] = ass
stress = ''
for i in range(len(lists)):
	stress += lists[i]
print(stress)


Cadena = input()
Res = Cadena[0].upper()
for i in range(len(Cadena) - 1):
	Res = Res + Cadena[i + 1]
print(Res)


w = input()
count = 0
for c in w:
	count = count + 1
	if count == 1:
		print(c.upper(), end='')
	else:
		print(c, end='')


import string
word = input()
x = len(word)
word1 = word[0].capitalize()
word2 = word[1:x]
word = word1 + word2
print(word)


s = input().strip()
s = s.split(' ')
res = []
for ss in s:
	ss = list(ss)
	ss[0] = ss[0].upper()
	ss = ''.join(ss)
	res.append(ss)
print(' '.join(res))


word = str(input())
answer = word[0].upper() + word[1:]
print(answer)


word = input()
tab = []
for i in range(len(word)):
	tab.append(word[i])
tab[0] = tab[0].upper()
print(''.join(tab))


n = input()
l = list(n)
s = str(l[0])
b = s.capitalize()
l[0] = b
st = ''
print(st.join(l))


s = list(input())
s[0] = s[0].upper()
for k in range(0, len(s)):
	print(s[k], end='')


string = str(input())
letter = string[0].upper()
string = string[1:]
string = letter + string
print(string)


word = input()
f = word[0]
lower = set('abcdefghijklmnopqrstuvwxyz')
if f not in lower:
	print(word)
else:
	if f in lower:
		word = word[1:]
		f = f.upper()
	print(f, word, sep='')


m = input()
m = list(m)
m[0] = m[0].upper()
s = ''
print(s.join(m))


k = input()
t = k[0].upper()
p = k[1:]
print(t + p)


s = input()
n = len(s)
x = s[0]
x = x.upper()
print(x + s[1:n])


ch = str(input())
ch1 = ch[0].upper()
print(ch1 + ch[1:])


a = [i for i in input()]
a[0] = a[0].upper()
ans = ''.join(a)
print(ans)


nums = input()
ans = ''
n = 0
indice = 0
toCap = True
while n < len(nums):
	if nums[0].islower() and toCap:
		ans += nums[indice].upper()
		toCap = False
		indice += 1
		n += 1
	else:
		ans += nums[indice]
		indice += 1
		n += 1
print(ans)


words = input()
words = ' '.join(words[:]).split()
words[0] = words[:][0].upper()
print(''.join(words))


str_0 = input()
list_0 = []
for i in str_0:
	list_0.append(i)
list_0[0] = list_0[0].upper()
print(''.join(list_0))


y = input()
print(y[0].capitalize() + y[1:len(y)])


a = list(input())
e = ''
a[0] = a[0].upper()
n = len(a)
for i in range(n):
	e += a[i]
print(e)


str = input()
print(str if str[0].upper() == str[0] else str[0].upper() + str[1:])


a = input()
if ord(a[0]) > 96 and ord(a[0]) <= 122:
	print(a[0].upper() + a[1:])
else:
	print(a)


word = input()
s = word[:1]
res = s.upper() + word[1:]
print(res)


msk = input()
if msk[0].islower():
	print(msk[0].upper() + msk[1:])
else:
	print(msk)


alphabet = 'abcdefghijklmnopqrstuvwxyz'
n = input()
if n[0] in alphabet:
	t = n[1:]
	n = n[0].upper() + t
print(n)


a = input()
b = a[0]
b = b.upper()
c = a[1:]
ans = b + c
print(ans)


n = str(input())
list = []
for i in n:
	list.append(i)
print(n[0].capitalize() + n[1:])


s = str(input())
c = []
for x in range(0, len(s)):
	c.append(s[x])
if c[0].islower():
	c[0] = c[0].upper()
s = ''.join((c[x] for x in range(len(c))))
print(s)


s = input()
x = ord(s[0])
if x >= 97:
	x = x ^ 32
print(chr(x) + s[1:])


from typing import List
string: List[str] = list(input())
s = string[0].upper() + ''.join(string[1:])
print(s)


str = input()
print(str[0].capitalize() + str[1:len(str)])


print((lambda y: y[0].upper() + y[1:])(input()))


s = input()
r = ''
if ord(s[0]) > ord('Z'):
	r = chr(ord(s[0]) + (-ord('z') + ord('Z')))
else:
	r = s[0]
print(r + s[1:])


s = str(input())
f = list(s)
if f[0].isupper():
	print(s)
else:
	print(f[0].upper() + s[1:])


n = input()
if n[:1] == n[:1].upper():
	print(n)
else:
	print(n[:1].upper() + n[1:])


num = input()
num = list(num)
print(num[0].capitalize() + ''.join(num[1:]))


n = str(input())
x = len(n)
if n[0].islower():
	x = n[0].upper()
	print(x + n[1:])
else:
	print(n)


n = input('')
b = n[0].upper()
print(f'{b}{n[1:len(n)]}')


n = input()
o = []
for i in range(int(len(n))):
	if i == 0:
		m = n[i].upper()
		o.append(m)
	else:
		m = n[i]
		o.append(m)
print(''.join(o))


a = str(input())
if a[0] == a[0].lower():
	print(a[0].upper(), end='')
	print(a[1:len(a)])
else:
	print(a)


st = input()
lt = list(st)
a = lt[0]
b = a.upper()
ten = lt.pop(0)
lt.insert(0, b)
makeitastring = ''.join(map(str, lt))
print(makeitastring)


s = input()
w = s[0].capitalize()
print(w + s[1:])


import sys
a = input()
print(a[0].upper() + a[1:])


var = input()
first = var[0].upper()
temp = var[1:]
print(first + temp)


r = input()
a = r[0]
print(a.capitalize() + r[1:])


string = input()
initial = string[:1]
therest = string[1:]
print(initial.title() + therest)


cap = input()
k = ''
k = cap[0].upper()
print(k + cap[1:])


a = input()
b = a[0]
y = 0
if a[0].isupper() == 'true':
	print(a)
else:
	c = a.replace(a[0], a[0].upper(), 1)
print(c)


inp = input()
oup = inp[0].upper()
oup += inp[1:]
print(oup)


l = list(input())
m = []
for i in range(len(l)):
	if i == 0:
		m.append(l[0].upper())
	else:
		m.append(l[i])
print(''.join([str(e) for e in m]))


word = input()
if ord(word[0]) in range(65, 91):
	print(word)
else:
	print(chr(ord(word[0]) - 32) + word[1:])


s = input()
print(chr(ord(s[0]) - (ord('a') - ord('A')) * (ord(s[0]) // 95)), end='')
for i in range(1, len(s)):
	print(s[i], end='')


s = [char for char in input()]
a = s[0]
s.remove(s[0])
print(a.capitalize() + ''.join(s))


import string
c = str(input())
i = 0
pupok = []
while i < len(c):
	pupok.append(c[i])
	i += 1
a = []
i = 0
while i < len(string.ascii_uppercase):
	a.append(string.ascii_uppercase[i])
	i += 1
i = 0
b = []
while i < len(string.ascii_lowercase):
	b.append(string.ascii_lowercase[i])
	i += 1
i = 0
while i < len(string.ascii_lowercase):
	if pupok[0] == string.ascii_lowercase[i]:
		del pupok[0]
		pupok.insert(0, string.ascii_uppercase[i])
	else:
		i += 1
i = 0
kal = str()
while i < len(pupok):
	kal = kal + pupok[i]
	i += 1
print(kal)


import math, string, itertools, fractions, heapq, collections, re, array, bisect, sys, copy, functools
sys.setrecursionlimit(10 ** 7)
inf = 10 ** 20
eps = 1.0 / 10 ** 10
mod = 10 ** 9 + 7
dd = [(-1, 0), (0, 1), (1, 0), (0, -1)]
ddn = [(-1, 0), (-1, 1), (0, 1), (1, 1), (1, 0), (1, -1), (0, -1), (-1, -1)]

def LI():
	return list(map(int, sys.stdin.readline().strip().split()))

def LLI():
	return [list(map(int, l.split())) for l in sys.stdin.readlines().strip()]

def LI_():
	return [int(x) - 1 for x in sys.stdin.readline().strip().split()]

def LF():
	return [float(x) for x in sys.stdin.readline().strip().split()]

def LS():
	return sys.stdin.readline().strip().split()

def I():
	return int(sys.stdin.readline().strip())

def F():
	return float(sys.stdin.readline().strip())

def S():
	return sys.stdin.readline().strip()

def pf(s):
	return print(s, flush=True)

def pe(s):
	return print(str(s), file=sys.stderr)

def JA(a, sep):
	return sep.join(map(str, a))

def JAA(a, s, t):
	return s.join((t.join(map(str, b)) for b in a))
from math import factorial, gcd
from random import choice, randint
from sys import stdin, stdout
inp = stdin.readline
out = stdout.write

def main():
	s = S()
	print(s[0].upper() + s[1:])
main()


word = str(input())
word1 = []
for i in word:
	word1.append(i)
word2 = word[0].upper()
del word1[0]
word1.insert(0, word2)
word3 = ''.join([str(i) for i in word1])
print(word3)


word = list(input())
k = ord(word[0])
if k in range(91, 132):
	k = k - 32
	word[0] = chr(k)
print(''.join(word))


user_input = input()
lenght = len(user_input)
print(user_input[0].capitalize() + user_input[1:lenght])


s = input()
if s[0] >= 'A' and s[0] <= 'Z':
	print(s)
else:
	print(s[0].upper() + s[1:len(s) + 1])


l = input()
print(l[0].upper() + l[1:1000])


x = input()
LIST = []
k = str()
y = str()
for i in x:
	LIST.append(i)
for z in LIST:
	if z == LIST[0]:
		k = z.upper()
del LIST[0]
for i in LIST:
	y += i
print(k + y)


m_str = input()
m_str = m_str[0].upper() + m_str[1:]
print(m_str)


S = str(input(''))
Y = S[0].upper()
Z = S[1:]
print(Y, Z, sep='', end='')


e = input()
f = list(e).pop(0)
f = f.capitalize()
print(f + e[1:])


s = input()
r = s[0].upper()
e = s[1:]
f = r + e
print(f)


string = input()
aux = ''
for i in range(len(string)):
	if i == 0:
		aux += string[i].upper()
	else:
		aux += string[i]
print(aux)


str = input()
n = len(str)
output = []
for i in range(n):
	char = str[i]
	if i == 0:
		output.append(char.capitalize())
	else:
		output.append(char)
print(''.join(output))


def toString(lis):
	return ''.join(lis)
string = str(input())
strlist = list(string)
strlist[0] = strlist[0].upper()
print(toString(strlist))


string = list(input())
if string[0] == string[0].lower():
	string[0] = string[0].upper()
	new_string1 = ''
	for i in string:
		new_string1 += i
	print(new_string1)
else:
	new_string2 = ''
	for i in string:
		new_string2 += i
	print(new_string2)


n = input()
x = n[0].capitalize()
print(x + n[1:])


word = input()
l = []
for i in word:
	l.append(i)
letter = ord(l[0])
if 122 >= letter >= 97:
	new_value = letter - 32
	l[0] = chr(new_value)
final = ''.join(l)
print(final)


def main():
	x = list(input())
	x[0] = x[0].upper()
	print(''.join(x))
main()


Word = input().strip()
FirstLetter = Word[:1]
print(FirstLetter.capitalize() + Word[1:])


word = list(input(''))
word[0] = word[0].upper()
for i in word:
	print(i, end='')


str1 = input()
list1 = list(str1)
if ord(list1[0]) >= 97:
	list1[0] = chr(ord(str1[0]) - 32)
print(''.join(list1))


s = input()
b = s[0]
if b.islower():
	b = b.upper()
	print(b, end='')
	print(s[1:])
else:
	print(s)


s = input()
if ord(s[0]) > 90:
	s = chr(ord(s[0]) - 32) + s[1:]
print(s)


s = input()
l = s[0].upper()
for i in range(1, len(s)):
	l = l + s[i]
print(l)


str = input()
arr = list(str)
arr[0] = arr[0].capitalize()
res = ''.join(arr)
print(res)


s = list(input())
if not s[0].isupper():
	s[0] = chr(ord(s[0]) - 32)
print(''.join(s))


s1 = input()
res = s1[0].upper() + s1[1:]
print(res)


s = input()
x = ord(s[0])
if x > 96 and x < 123:
	x = x - 32
print(chr(x), end='')
print(s[1:])


word = list(input())
capital = word[0].capitalize()
word.remove(word[0])
print(capital + ''.join(word))


word = input()
l = len(word)
a = word[0].upper()
b = word[1:l]
print(a + b)


inputstr = input()
print(inputstr[0].upper() + inputstr[1:])


m = input()
a = m[0]
print(a.upper(), m[1:], sep='')


s1 = str(input())
print(s1[0].upper() + s1[1:])


x = str(input())
c = x[0]
d = c.upper()
x = x[1:]
s = d + x
print(s)


s = input()
l = list(s)
if l[0] >= 'a' and l[0] <= 'z':
	r = ord(s[0]) - ord('a') + ord('A')
	l[0] = chr(r)
s = ''.join(l)
print(s)


def main():
	string = input()
	check = list(string)
	n = ord(check[0])
	if n >= 97:
		check[0] = chr(n - 32)
	string = ''
	for x in check:
		string += x
	print(string)
main()


def capitalize(word):
	print(word[0].capitalize() + word[1:])
word = input()
capitalize(word)


x = input()
j = x[0].capitalize()
w = len(x)
print(j + x[1:w + 1])


inpt = input()
outp = ''
for i in range(len(inpt)):
	if i == 0:
		outp += inpt[i].upper()
	else:
		outp += inpt[i]
print(outp)


n = str(input(''))
x = n[:1].capitalize()
d = str(x) + str(n[1:])
print(d)


try:
	word = input()
	res = word[0].upper() + word[1:]
	print(res)
except:
	pass


s = input()
i = 1
n = []
n.append(s[0].upper())
while i < len(s):
	n.append(s[i])
	i += 1
print(''.join(n))


x = input('')
y = list(x)
h = y[0]
g = ord(h)
k = g - 32
if ord(y[0]) in range(97, 97 + 26):
	y[0] = chr(k)
	j = ''
	print(j.join(y))
else:
	print(x)


word = input()
res = word[0].upper() + word[1:]
print(res)


n = input()
if ord(n[0]) < 91:
	print(n)
else:
	print(chr(ord(n[0]) - 32) + n[1:])


n = input()
if n[0].islower() == True:
	p = n[0].upper()
	m = n[1:len(n)]
	print(p + m)
else:
	print(n)


s = input().rstrip()
s = [i for i in s]
s[0] = s[0].upper()
print(''.join(s))


s = input()
x = s[0].upper()
print('{}{}'.format(x, s[1:]))


import sys
in_str = sys.stdin.readline()
ch = in_str[0].upper()
print(ch + in_str[1:len(in_str)])


a = list(input())
if ord(a[0]) > 90:
	a[0] = chr(ord(a[0]) - 32)
print(''.join(a))


import sys
import math

def wordcap():
	datain = input()
	print(datain[0].upper() + datain[1:])
wordcap()


s = input()
n = len(s)
z = s[0].upper()
for i in range(n):
	if i > 0:
		z += s[i]
print(z)


x = list(input())
if ord(x[0]) in range(97, 123):
	p = x[0]
	p = ord(p) - 32
	x[0] = chr(p)
x = ''.join(x)
print(x)


x = list(input())
if ord(x[0]) >= 97:
	x[0] = chr(ord(x[0]) - 32)
print(''.join(x))


import sys
n = 0
p = ''
for l in sys.stdin:
	for k in l:
		if n == 0:
			k = k.capitalize()
			n = n + 1
		p = p + k
	break
print(p)


try:
	n = input()
	s = n[0]
	t = s.upper()
	r = t + n[1:]
	print(r)
except:
	pass


a = input()
print(a[0].capitalize() + a[1:len(a)])


x = list(input())
for i in range(len(x)):
	if i == 0:
		x[0] = x[0].upper()
for i in x:
	print(i, end='')


s1 = input()
if s1[0].islower():
	print(s1[0].upper() + s1[1:])
else:
	print(s1)


myString = input()
firstLetter = myString[0].upper()
tail = myString[1:]
print(firstLetter + tail)


def main():
	raw_string = input()
	final_string = raw_string[0].upper() + raw_string[1:]
	print(final_string)
main()


s = input()
r = s[0].upper()
l = list(s)
l[0] = r
s = ''.join(l)
print(s)


def main1(a):
	print(a[0].upper() + a[1:])
a = str(input())
main1(a)


x = input('')
x1 = x[:1]
x2 = x[1:]
x1 = x1.capitalize()
x3 = x1 + x2
print(x3)


def caps(s):
	s = s[0].upper() + s[1:]
	return s
print(caps(input()))


str1 = input()
str2 = '.'.join(str1)
list1 = str2.split('.')
str3 = list1[0]
str3 = str3.upper()
list1[0] = str3
str4 = ''.join(list1)
print(str4)


a = input()
b = list(a)
b[0] = b[0].upper()
for x in range(len(b)):
	print(b[x], end='')


def Capitalization(word):
	first_letter = word[0]
	print(word[0].upper() + word[1:])
word = input()
Capitalization(word)


from re import sub
key = input()
key = sub('([a-zA-Z])', lambda x: x.groups()[0].upper(), key, 1)
print(key)


n = input()
if len(n) <= 10 ** 3:
	x = n.capitalize()
print(x[0] + n[1:])


s = input()
if ord(s[0]) < 92:
	print(s)
else:
	print(chr(ord(s[0]) - 32), end='')
	i = 1
	while i < len(s):
		print(s[i], end='')
		i += 1


s = input()
temp = s[0]
if temp >= 'a' and temp > 'Z':
	s = s.replace(s[0], s[0].upper(), 1)
print(s)


import math
arr = list(input())
arr[0] = arr[0].upper()
final_str = ''
print(final_str.join(arr))


s = input()
s_new = s[0].upper() + s[1:]
print(s_new)


from collections import *
from math import *
from sys import *
s = list(input())
s[0] = s[0].upper()
print(''.join(s))


wtf = input()
print(wtf[0].upper() + wtf[1:])


old = input()
first = old[0].upper()
second = old[1:len(old)]
print(first + second)


stroka = input()
print(stroka[0].upper() + stroka[1:len(stroka)])


x = input()
a = ord(x[0])
if 97 <= a <= 122:
	a = a - 96
	a = a + 64
	a = chr(a)
	print(a, x[1:], sep='')
else:
	print(x)


inp = input()
if inp[0].islower():
	a = inp[0].upper()
	inp = inp.replace(inp[0], a, 1)
print(inp)


s = input()
s1 = ''
if len(s) >= 1 and len(s) <= 1000:
	s1 = s[0]
	s1.upper()
	print(s1.upper() + s[1:len(s)])


from functools import reduce
import os
import sys
from math import *
from collections import *
from fractions import *
from bisect import *
from heapq import *
from io import BytesIO, IOBase
input = lambda : sys.stdin.readline().rstrip('\r\n')

def value():
	return tuple(map(int, input().split()))

def arr():
	return [int(i) for i in input().split()]

def sarr():
	return [int(i) for i in input()]

def inn():
	return int(input())
mo = 1000000007
s = input()
if ord(s[0]) >= 97:
	s = chr(ord(s[0]) - 32) + s[1:]
print(s)


word = input()
another_word = str(word[0]).capitalize()
print(another_word + word[1:])


word = input()
for c in range(0, len(word)):
	if c == 0:
		print(word[c].capitalize(), end='')
	else:
		print(word[c], end='')


x = input()
t = x[0].upper()
j = 1
while j < len(x):
	t = t + x[j]
	j += 1
print(t)


def main():
	s = input()
	if not s[0].isupper():
		s = s[0].upper() + s[1:]
	print(s)
main()


str1 = input()
firlet = str1[0].upper()
res = firlet + str1[1:]
print(res)


a = input()
i = a[0]
i = i.upper()
a = i + a[1:]
print(a)


def cap(s):
	if len(s) > 0:
		r = s[0].upper()
		r = str(r) + s[1:]
		return r
	return s
s = input()
print(cap(s))


l = list(map(str, input().split(' ')))
r = ''
for i in range(len(l)):
	x = str(l[i][0:1])
	r = r + x.upper()
	r = r + str(l[i][1:])
	if i != len(l) - 1:
		r = r + ' '
print(r)


n = input('')
x = n[0]
y = n[1:len(n) + 1]
x = x.capitalize()
print(x + y)


s = input()
res = ''
for i in range(len(s)):
	if i == 0:
		if ord(s[i]) > 91 and ord(s[i]) < 123:
			res += chr(ord(s[i]) - 32)
		else:
			res += s[i]
	else:
		res += s[i]
print(res)


import sys
Input1 = str(input())
Input2 = Input1[0]
if len(Input1) == 1:
	Input1 = Input1.capitalize()
	print(Input1)
else:
	Input2 = Input2.capitalize()
	Input1 = Input2 + Input1[1:-1] + Input1[-1]
	print(Input1)


w = str(input().strip())
print(w[0].upper() + w[1:])


word = input()
a = word[0].upper()
wordList = []
for i in range(0, len(word)):
	wordList.append(word[i])
wordList[0] = a
k = ''.join(wordList)
print(k)


a = input()
b = a[0].capitalize()
a = list(a)
a.insert(0, b)
a.pop(1)
a = ''.join(a)
print(a)


def caps(s):
	first_bit = s[0].capitalize()
	return first_bit + s[1:]

def main():
	first_word = input()
	print(caps(first_word))
main()


def capita(n):
	if n[0].islower():
		return n[0].upper() + n[1:]
	return n
n = input()
print(capita(n))


n = input()
output = ''
for (i, value) in enumerate(n):
	if i == 0:
		output += value.upper()
	else:
		output += value
print(output)


word = input().strip()
print(word.capitalize()[:1], end='')
print(word[1:])


s = input()
x = s[0].upper()
l = list(s)
l.remove(l[0])
ans = ''.join(l)
ans = x + ans
print(ans)


n = input()
if str.isupper(n):
	print(n)
else:
	print(n[0].upper() + n[1:])


inputWord = list(input())
inputWord[0] = inputWord[0].upper()
print(''.join(inputWord))


n = input()
l = list(n)
word = l[0].upper() + ''.join(l)
l = len(word)
if l < pow(10, 3):
	new = ''
	index = 1
	i = 0
	if l < pow(10, 3):
		while i < l:
			if i != index:
				new = new + word[i]
			i = i + 1
	print(new)


def main():
	s = input('')
	s = list(s)
	if 'a' <= s[0] and s[0] <= 'z':
		s[0] = chr(ord(s[0]) - ord('a') + ord('A'))
	for i in range(len(s)):
		print(s[i], end='')
	print()
main()


ip = input()
ans = ''
if 97 <= ord(ip[0]) <= 122:
	ans += chr(ord(ip[0]) - 32)
else:
	ans += ip[0]
ans += ip[1:]
print(ans)


z = input
l = z()
f = l[0]
f = f.upper()
print(f + l[1:])


word = input()
cap = word[0].capitalize()
print(cap + word[1:])


import sys
import collections
import math
import functools
import itertools
import bisect
import operator
import heapq
import random
true = True
false = False
null = None
tcid = 0

def ceil(a, b):
	ans = a // b
	if a % b != 0:
		ans += 1
	return ans

def perr(*args, **kwargs):
	print(*args, file=sys.stderr, **kwargs)

def line():
	ln = sys.stdin.readline().strip()
	if ln == '':
		sys.exit()
	return ln

def lines(n):
	return [line() for i in range(n)]

def split(ln=None):
	return (ln or line()).split()

def parse(*parsers):
	return list(map(lambda p, w: p(w), parsers, split()))

def nums(o=None):
	if o is not None:
		if isinstance(o, int):
			o = lines(o)
		elif isinstance(o, str):
			o = split(o)
	return list(map(int, o or split()))

def num():
	return int(line())

def solve(tcid=1):
	s = line()
	s = list(s)
	s[0] = s[0].upper()
	print(*s, sep='')
while true:
	tcid += 1
	solve(tcid)


word = input()
a = word[0]
small = 'abcdefghijklmnopqrstuvwxyz'
big = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']
if a in small:
	num = small.find(a)
	b = big[num]
	print(b + word[1:])
else:
	print(word)


word = input()
out = word[0:1].capitalize() + word[1:]
print(out)


words = str(input()).split()
upper_case_words = []
for word in words:
	upper_case_words.append(word[0].upper() + word[1:])
upper_case_text = ' '.join(upper_case_words)
print(upper_case_text)


n = input()
if any((x.isupper() for x in n)) and n[0].islower():
	print(n[0].upper() + n[1:])
elif n[0].isupper():
	print(n)
else:
	print(n.capitalize())


s = input()
ss = s[:1]
ss_capital = ss.title()
ss_new = ss_capital + s[1:len(s) + 1]
print(ss_new)


import sys, math, collections
from collections import defaultdict
import math, sys

def file():
	sys.stdin = open('input.py', 'r')
	sys.stdout = open('output.py', 'w')

def get_array():
	l = list(map(int, input().split()))
	return l

def sod(n):
	(n, c) = (str(n), 0)
	for i in n:
		c += int(i)
	return c

def main():
	s = input()
	ans = s[0].upper()
	for i in range(1, len(s)):
		ans += s[i]
	print(ans)
main()


Str = input()
if Str[0].isupper():
	print(Str)
else:
	print(Str[0].upper() + Str[1:])


w = input()
if w:
	print(w[0].upper() + w[1:])
else:
	print()


x = input()
y = len(x)
z = x[1:y]
print(x[0].upper() + z)


string = input()
_string = string[:1].upper() + string[1:]
print(_string)


A = str(input())
A = list(A)
a1 = []
A1 = []
a1 = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
A1 = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']

def Buscar(x):
	count = 0
	k = 0
	while k < len(a1) and count == 0:
		if x == a1[k] or x == A1[k]:
			count = 1
		k += 1
	return k
y = Buscar(A[0])
A[0] = A1[y - 1]
cadena = ''.join(A)
print(cadena)


x = str(input())
print(x) if 97 > ord(x[0]) >= 65 else print(x[0].upper() + x[1:])


import string
l = input()
print(l[0].upper() + l[1:])


string = input()
l = list(string)
l[0] = l[0].upper()
print(*l, sep='')


a = input()
f = []
f.append(a[0].upper())
for i in range(1, len(a)):
	f.append(a[i])
for i in range(len(f)):
	print(f[i], end='')


k = []
s = input()
k = [s[0], s[1:]]
k[0] = k[0].capitalize()
b = ''
b = b.join(k)
print(b)


a = input()
for i in range(len(a)):
	if i == 0:
		l = a[i].upper()
		print(l, end='')
	else:
		print(a[i], end='')


word = input()
num = len(word)
if ord(word[0]) > 96:
	w = chr(ord(word[0]) - 32)
	print(w, end='')
else:
	print(word[0], end='')
for i in range(1, num):
	print(word[i], end='')


str = input()
letter = []
Convertit = []
i = 0
for leeter in str:
	letter.append(leeter)
if letter[i].isupper() == True:
	print(str)
	i += 1
else:
	Convertit.append(str[0].upper())
	Convertit.append(str[1:])
print(''.join(Convertit))


word = str(input())
result = word
if not word[0].isupper():
	result = word[0].upper() + word[1:]
print(result, end='')


string = input()
a = string[0]
a = a.upper()
b = string[1:]
print(a + b)


myString = input()
firstChar = myString[0].upper()
theRest = myString[1:]
print(firstChar + theRest)


sp = list(input())
print(sp[0].upper() + ''.join(sp[1:len(sp)]))


def capitalize(input):
	first_char = input[0]
	if 'a' <= first_char <= 'z':
		first_char = str(chr(ord(first_char) - 32))
	return first_char + input[1:]
print(capitalize(input()))


s = str(input())
n = s[0].upper()
ans = n + s[1:]
print(ans)


t = input()
f = t[0]
f = f.upper()
w = f + t[1:]
print(w)


n = str(input())
p = list(n)
x = p[0].upper()
p.pop(0)
p.insert(0, x)
lst1 = ''.join(map(str, p))
print(lst1)


def main():
	s = list(input())
	s[0] = s[0].upper()
	s = ''.join(s)
	print(s)
main()


st = input()
st = list(st)
if st[0].isupper() == True:
	print(''.join(st))
elif st[0].islower() == True:
	print(''.join(list(st[0].upper()) + st[1:]))


import sys

def to_lower(x):
	return x.upper()
x = input()
sys.stdout.write(to_lower(x[0]))
sys.stdout.write(x[1:])


print(''.join((i.upper() if index == 0 else i for (index, i) in enumerate(input()))))


raw_word = str(input(''))
size = len(raw_word)
list = []
counter = 0
for items in raw_word:
	if counter == 0:
		item = items.upper()
		counter = counter + 1
		list.insert(len(list), item)
	else:
		list.insert(len(list), items)
w = ''
for items in list:
	w = w + str(items)
print(w, end='')


string = str(input())
d = string[:1]
t = d.upper() + string[1:]
print(t)


ch = input()
ch1 = ''
ch1 = ch1 + ch[0].upper() + ch[1:len(ch)]
print(ch1)


word = list(input())
finished = []
finished.append(word[0].upper())
for i in word[1:]:
	finished.append(i)
out = ''.join(finished)
print(out)


m = input()
if m[0] in 'QWERTYUIPOLKJHGFDSAZXCVBNM':
	print(m)
else:
	print(m[0].upper() + m[1:])


a = input()
n = [x for x in a]
if ord(n[0]) > 90:
	n[0] = chr(ord(a[0]) - 32)
c = ''
for i in n:
	c = c + i
print(c)


n = input()
res = ''
if n[0].islower():
	n = n[0].upper() + n[1:]
print(n)


userInput = input()
userInput = userInput[0].title() + userInput[1:]
print(userInput)


import string
s = input()
q = 0
if s[0] in string.ascii_lowercase:
	q = ord(s[0]) - 32
	q = chr(q)
	s = q + s[1:]
print(s)


p = input()
ppp = []
a = ord('a')
z = ord('z')
aa = ord(p[0])
if (aa >= a) & (aa <= z):
	aa = aa - 32
	bb = chr(aa)
	ppp.append(bb)
else:
	bb = chr(aa)
	ppp.append(bb)
for i in range(1, len(p), 1):
	aa = ord(p[i])
	bb = chr(aa)
	ppp.append(bb)
print(''.join([str(ppp[i]) for i in range(0, len(ppp))]))


palavra = input()
tam = len(palavra)
novapalavra = []
nn = []
for x in range(tam):
	if x == 0:
		nn = palavra.upper()
		novapalavra.append(nn[0])
	else:
		novapalavra.append(palavra[x])
print(*novapalavra, sep='')


word = input().strip()
print(word[0].capitalize() + word[1:])


str1 = input()
print(str1.replace(str1[0], str1[0].upper(), 1))


input_string = input()
upper_char = input_string[0].upper()
temp_string = upper_char + input_string[1:]
print(temp_string)


word = input()
if ord(word[0]) >= 97 and ord(word[0]) <= 122:
	indx = ord(word[0]) - 32
	print(chr(indx) + word[1:len(word)])
else:
	print(word)


x = input()
k = x[0].upper() + x[1:]
print(k)


a = list(input())
x = a.pop(0).upper()
a.insert(0, x)
print(''.join(a))


n = input()
nlist = list(n)
nlist[0] = nlist[0].capitalize()
for i in nlist:
	print(i, end='')


a = input()
if a[0].isupper() == True:
	print(a)
else:
	print(a[0].upper() + a[1:])


from sys import stdin
word = stdin.readline().rstrip()
word = word[0].upper() + word[1:]
print(word)


x = str(input())
print(x[0].upper() + x[1:len(x) + 1])


s = input()
second = s[1:]
first = str.upper(s[0])
print(first + second)


n = input()
l = []
for i in range(len(n)):
	if i == 0:
		d = n[i].upper()
		l.append(d)
	else:
		l.append(n[i])
print(''.join(l))


a = input()
b = list(a)
if ord(b[0]) > 96:
	b[0] = chr(ord(b[0]) - 32)
n = b[0]
i = 1
while i < len(b):
	n += b[i]
	i += 1
print(n)


a = str(input())
l = []
l[:] = a
if ord(l[0]) >= 97:
	c = ord(a[0]) - 32
	l[0] = chr(c)
for i in range(len(l)):
	print(l[i], end='')


x = input()
y = x[0].upper()
z = x[1:]
h = y + z
print(h)


s = input()
t = s.replace('', ' ').split()
t[0] = t[0].upper()
print(''.join(t))


def main(string):
	if ord(string[0]) <= 90:
		return string
	return chr(ord(string[0]) - 32) + string[1:]
string = input()
print(main(string))


def inp():
	return int(input())

def inlt():
	return list(map(int, input().split()))

def insr():
	s = input()
	return list(s[:len(s)])

def invr():
	return map(int, input().split())
d = insr()
down = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
up = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']

def isin(L):
	for i in L:
		if i == d[0]:
			return True
	return False

def indice(L):
	n = len(L)
	for i in range(n):
		if L[i] == d[0]:
			return i

def listtostr(L):
	st = ''
	n = len(L)
	for i in range(n):
		st += L[i]
	return st
if isin(up) == True:
	print(listtostr(d))
else:
	k = indice(down)
	ch = [up[k]] + d[1:]
	print(listtostr(ch))


def solve():
	s = input().strip()
	print(s[0].upper() + s[1:])
solve()


word = input()
word = list(word)
if len(word) >= 1 and len(word) <= 10 ** 3:
	if word[0].islower() == True:
		word[0] = word[0].upper()
word = ''.join(word)
print(word)


st = str(input())
for i in range(len(st)):
	if i < 1 and st[i].islower():
		print(st[i].upper(), end='')
	else:
		print(st[i], end='')


st = list(input())
st[0] = st[0].upper()
print(''.join(st))


s = input()
if s[0].isupper():
	print(s)
elif s[0].islower():
	print(s[0].upper() + s[1:])


a = str(input())
c = []
for i in range(0, len(a)):
	c.append(a[i])
c[0] = c[0].upper()
for i in c:
	print(i, end='')


word = input()
if word != '':
	print(word[0].capitalize() + word[1:])


n = input()
k = n[0]
p = n[0].upper()
g = p
for i in range(1, len(n)):
	g = g + str(n[i])
print(g)


a = input()
if 'a' <= a[0] <= 'z':
	b = chr(ord(a[0]) + (ord('A') - ord('a')))
else:
	b = a[0]
for i in range(1, len(a)):
	b = b + a[i]
print(b)


a = [i for i in input()]
print(a[0].upper(), end='')
a.pop(0)
for i in a:
	print(i, end='')


import string
n = input()
txt = n[0]
x = txt.capitalize()
print(x + n[1:])


a = input()
b = ord(a[0])
if b > 96:
	print(chr(b - 32) + a[1:])
else:
	print(a)


masukan = input('')
awal = masukan[0].upper()
print(awal + masukan[1:])


lst = list(input())
lst[0] = lst[0].upper()
l = ''.join(map(str, lst))
print(l)


ch = input()
L = list(ch)
L[0] = L[0].upper()
ch = ''.join(L)
print(ch)


def main():
	the_string = input()
	plm = the_string[0].upper() + the_string[1:]
	print(plm)
main()


s = list(input())
s[0] = s[0].upper()
st = ''
for i in s:
	st += i
print(st)


vorodi = list(input())
vorodi[0] = vorodi[0].upper()
print(''.join(vorodi))


X = input()
X = X[0].upper() + X[1:]
print(X)


a = input()
g = ''
for i in range(1, len(a)):
	g += a[i]
if 65 <= ord(a[0]) <= 90:
	print(a)
else:
	print(chr(ord(a[0]) - 32) + g)


s = input()
x = list(s)
x[0] = x[0].upper()
for j in x:
	print(j, end='')


s = input()
first = s[0].upper()
w = len(s)
ss = first + s[1:w]
print(ss)


a = input()
print(a[:1].capitalize() + a[1:])


name = input()
name1 = name[0].upper()
name2 = name[1:]
print(f'{name1}{name2}')


import sys
from sys import stdin, stdout
import math
import random
import heapq
from collections import Counter
from functools import lru_cache
try:
	for _ in range(1):
		s = input()
		print(s[0].upper() + s[1:])
except EOFError as e:
	print(e)


import sys
s = sys.stdin.readline().strip()
s = s[0].upper() + s[1:]
sys.stdout.write(s + '\n')


s = list(input())
if s[0] != s[0].upper():
	s[0] = s[0].upper()
print(''.join(s))


s = input()
if s.find(s[0].lower()) != -1:
	print(s[0].upper() + s[1:])
else:
	print(s)


ln = input()
a = ln[0].upper()
print(ln.replace(ln[0], a, 1))


Str = str(input())
res = []
for i in range(len(Str)):
	res.append(Str[i])
if 97 <= ord(Str[0]) <= 122:
	res[0] = chr(ord(Str[0]) - 32)
for i in range(len(Str)):
	print(res[i], end='')


string0 = input()
print(str.upper(string0[0]) + string0[1:])


s = input()
l = list(s)
if l[0].isupper():
	pass
else:
	s = l[0].upper() + ''.join(l[1:])
print(s)


import math, sys
input = sys.stdin.readline
s = list(input())
s[0] = s[0].upper()
print(''.join(s))


s = input()
if ord(s[0]) > 95:
	c = ord(s[0]) - 32
else:
	c = ord(s[0])
if len(s) > 1:
	new = chr(c) + s[1:]
else:
	new = chr(c)
print(new)


import sys
a = input()
print('%c%s' % (a[0].upper(), a[1:]))


r = input()
s = ''
for i in r:
	if s == '':
		s += i.upper()
	else:
		s += i
print(s)


a = input()

def UP(string):
	return string[0].upper() + string[1:]
print(UP(a))


r = input()
l = list(r)
word = l[0].upper() + ''.join(l)
l = len(word)
if l < pow(10, 3):
	new = ''
	index = 1
	j = 0
	if l < pow(10, 3):
		while j < l:
			if j != index:
				new = new + word[j]
			j = j + 1
print(new)


n = input()
print(n[0].replace(n[0], n[0].capitalize()) + n[1:])


s = input()
l = list(s)
if l[0].isupper() != True:
	l[0] = l[0].upper()
	print(''.join(l))
else:
	print(s)


sp = input()
print(sp[0].upper() + sp[1:])


word = str(input())
wordlist = list(word[0].capitalize())
i = 1
while i < len(word):
	wordlist.append(word[i])
	i = i + 1
print(''.join(wordlist))


s = input()
ans = ''
fl = s[0]
ln = len(s)
if fl.isupper() == True:
	ans += fl
else:
	val = fl.swapcase()
	ans += val
for i in range(1, ln):
	v = s[i]
	ans += v
print(ans)


n = input()
m = ''
if n[0] in 'ABCDEFGHIJKLMNOPQRSTUVWXYZ':
	m = m + n[0]
else:
	k = ord(n[0])
	if k >= 97 and k <= 122:
		d = k - 32
		m = m + chr(d)
l = ''
for i in range(1, len(n)):
	l = l + n[i]
t = m + l
print(t)


word = input()
i = 0
word2 = ''
for i in range(word.__len__()):
	if i == 0:
		word2 += word[i].upper()
	else:
		word2 += word[i]
print(word2)


s = str(input())
capitalize = s[0].upper()
newstring = s[1:len(s)]
print(capitalize + newstring)


word = input()
result = []
for i in range(len(word)):
	if i == 0:
		result.append(word[0].upper())
	else:
		result.append(word[i])
print(''.join(result))


inputStr = input().strip()
inputStr = inputStr[0].upper() + inputStr[1:]
print(inputStr)


a = input()
b = []
c = ''
for i in range(len(a)):
	if i == 0:
		b.append(a[0].upper())
	else:
		b.append(a[i])
print(c.join(b))


word = input()
word = list(word)
i = 0
new = []
if ord(word[i]) >= 96 and ord(word[i]) <= 123:
	z = ord(word[i]) - 32
	new.append(chr(z))
else:
	new.append(word[i])
i = i + 1
while i < len(word):
	new.append(word[i])
	i = i + 1
print(''.join(new))


s = input()
if s[0] in 'qwertyuiopasdfghjklzxcvbnm':
	print(chr(ord(s[0]) + ord('Q') - ord('q')) + s[1:])
else:
	print(s)


word = input()
string = word[0].capitalize() + word[1:]
print(string)


n = input()
ni = n[0].upper()
for i in range(1, len(n)):
	ni += n[i]
print(ni)


s = ''
s = input()
char = s[0]
char = char.upper()
s = char + s[1:]
print(s)


s = input()
n = ''
c = 0
for i in s:
	if ord(i) > 96 and c == 0:
		n += chr(ord(i) - 32)
	else:
		n += i
	c = 1
print(n)


s = input()
x = list(s)
x[0] = x[0].upper()
t = ''
t = ''.join([x[0], s[1:]])
print(t)


n = input()
if n[0].islower():
	k = ''
	m = n[0].upper()
	k = m + n[1:]
	print(k)
else:
	print(n)


string = input()
string0 = string[0].upper()
print(string0 + string[1:])


a = list(input())
b = a[0].upper()
print(b, end='')
a.pop(0)
for i in a:
	print(i, sep='', end='')


word = input()
words = word[0].upper() + word[1:]
print(words)


string = str(input())
newstring = ''
flag = True
for i in string:
	if flag:
		newstring += i.upper()
		flag = False
		continue
	newstring += i
print(newstring)


inp = input()
if inp[0] >= 'a' and inp[0] <= 'z':
	inp = inp[0].swapcase() + inp[1:]
print(inp)


w = input()
u = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
index = len(w)
b = u.find(w[0])
if b != -1:
	print(w)
else:
	print(w[0].upper() + w[1:])


str = input()
char = str[0].upper()
str = str[1:]
str = char + str
print(str)


user_input = list(input())
if len(user_input) < 10 ** 3:
	user_input[0] = user_input[0].capitalize()
	user_input = ''.join(user_input)
	print(user_input)


s = input()
a = s[0].capitalize()
l = list()
l.append(a)
for i in range(1, len(s)):
	l.append(s[i])
for i in l:
	print(i, end='')


def list_input():
	return list(map(int, input().split()))

def multiple_input():
	return map(int, input().split())
s = input()
ans = s[0].upper()
ans += s[1:]
print(ans)


a = input()
b = a[0]
c = b.capitalize()
for i in range(len(a) - 1):
	c = c + a[i + 1]
print(c)


stra = input()
stra = stra[0].upper() + stra[1:]
print(stra)


s = input()
str1 = ''
str1 += s[0].upper()
str1 += s[1:]
print(str1)


s = input()
l = list(s)
if ord(l[0]) >= 97:
	p = ord(l[0]) - 97
	p = p + 65
	l[0] = chr(p)
print(*l, sep='')


str = input()
result = str[0].upper() + str[1:]
print(result)


C = input()
Ca = C[0].upper()
C1 = Ca + C[1:len(C)]
print(C1)


A = input()
i = 1
while i <= len(A):
	if i == 1:
		print(A[i - 1].upper(), end='')
		i += 1
	else:
		print(A[i - 1], end='')
		i += 1


def wordCapitalisation(n):
	lst = [i for i in n]
	if 97 <= ord(lst[0]) <= 122:
		lst[0] = chr(ord(n[0]) - 32)
	return ''.join([i for i in lst])
n = str(input())
res = wordCapitalisation(n)
print(res)


import sys
capitalize = input()
print(capitalize[0].upper() + capitalize[1:])


word = input()
wordUpper = word[0].upper() + word[1:]
print(wordUpper)


inString = input()
print(inString[0].upper() + inString[1:])


s = input()
p = ''
p = p + s[0]
p = p.capitalize()
for i in range(1, len(s)):
	p = p + s[i]
print(p)


a = input()
print(a[0].capitalize(), end='')
print(a[1:])


string = str(input())
check = []
for letter in string:
	check.append(letter)
if check[0] == check[0].upper():
	print(string)
else:
	check[0] = check[0].upper()
	for i in check:
		print(i, end='')


a = input()
b = a[0].title()
for i in range(1, len(a)):
	b = b + a[i]
print(b)


def ii():
	return int(input())

def mi():
	return map(int, input().split())

def li():
	return list(mi())
s = input()
print(s[0].upper() + s[1:])


from collections import Counter
import math
import sys
from bisect import bisect, bisect_left, bisect_right

def input():
	return sys.stdin.readline().strip()

def INT():
	return int(input())

def MAP():
	return map(int, input().split())

def LIST(N=None):
	return list(MAP()) if N is None else [INT() for i in range(N)]

def mod():
	return 10 ** 9 + 7
s = input()
x = s[0]
y = x.upper()
s = s.replace(x, y, 1)
print(s)


word = input()
for i in range(len(word)):
	if i == 0:
		print(word[i].upper(), end='')
		continue
	print(word[i], end='')


t = str(input())
k = list(t)
m = k[0].upper()
k.insert(0, str(m))
k.remove(k[1])
for i in k:
	print(i, end='')


n = input()
l = None
m = []
m.extend(n)
m.reverse()
d = m[-1].upper()
m.pop()
m.append(d)
m.reverse()
for i in m:
	if l == None:
		l = str(i)
		continue
	l = str(l) + str(i)
print(l)


str = input()
lst = []
if str[0].islower():
	lst = str[0].capitalize() + str[1:]
else:
	lst = str
print(lst)


n = input()
li = list(n)
x = li.pop(0)
x = x.upper()
fst = list(x)
fst.extend(li)
m = ''.join(fst)
print(m)


s = input()
kq = s[0]
kq = kq.upper()
if len(s) > 1:
	kq += s[1:]
print(kq)


i = input()
lol = str(i.upper())
new = str()
sc = int(0)
while sc < len(i):
	if sc == 0:
		new += lol[0]
	else:
		new += i[sc]
	sc += 1
print(new)


w = input()
print(w[:1].upper() + w[1:])


word = input()
word_out = word[0].upper() + word[1:]
print(word_out)


s = input()
l = len(s)
t = ''
r = s[0].upper()
for i in range(1, l):
	t += s[i]
a = r + t
print(a)


inp = input()
lst = list(inp)
lst[0] = lst[0].upper()
inp = ''.join(lst)
print(inp)


string = list(input())
string_ = string[0].upper()
for i in range(1, len(string)):
	string_ += string[i]
print(string_)


a = input()
s = a[0].upper()
for i in range(1, len(a)):
	if a[i - 1] == ' ':
		s += a[i].upper()
	else:
		s += a[i]
print(s)


s = input()
l = list(s)
if l[0].islower() == True:
	l[0] = l[0].upper()
f = ''.join(map(str, l))
print(f)


s = input()
s = [w for w in s]
s[0] = s[0].upper()
ans = ''
for i in range(len(s)):
	ans = ans + s[i]
print(ans)


word = input()
assert len(word) <= 10 ** 3
s = word[:1]
e = word[1:]
if s.isupper():
	s = s
else:
	s = s.upper()
print(s + e)


t = input()
if 96 < ord(t[0]) < 123:
	n = ord(t[0]) - 32
	print(chr(n) + t[1:])
else:
	print(t)


r = input()
t = r[0].upper()
w = r[1:]
print(t + w)


string = input()
newstring = string[0].capitalize() + string[1:]
print(newstring)


a = list(input())
if ord(a[0]) > 90:
	a[0] = chr(ord(a[0]) - 32)
for i in range(len(a)):
	print(a[i], end='')


s = input()
y = s[0]
x = s[0].upper()
print(s.replace(y, x, 1))


l = input()
k = ord(l[0])
if k > 96 and k < 123:
	l = chr(k - 32) + l[1:]
print(l)


s = input()
ans = s
if 97 <= ord(s[0]) <= 122:
	ans = chr(ord(s[0]) - 32) + s[1:]
print(ans)


st = input().strip()
cap = ord(st[0])
if cap > 90:
	cap -= 32
	st = chr(cap) + st[1:]
print(st)


word = [str(let) for let in input()]
newWord = []
newWord.append(word[0].upper())
word.pop(0)
for letter in word:
	newWord.append(letter)
for letter in newWord:
	print(letter, end='')


w = input()
w = list(w)
s = ''
for i in w:
	w[0] = w[0].upper()
	break
for i in w:
	s += i
print(s)


x = input()
if ord(x[0]) > 64 and ord(x[0]) < 91:
	print(x)
else:
	l = []
	l.append(chr(ord(x[0]) - 32))
	for i in range(0, len(x)):
		if i != len(x) - 1:
			l.append(x[i + 1])
		print(l[i], end='')


x = input()
y = list(x)
for i in range(1):
	if i == 0:
		y[0] = y[0].upper()
print(''.join(y))


word = input()
capital = word[0:1].upper()
print(capital + word[1:])


string = input()
New_string = string[0].upper()
for i in range(1, len(string)):
	New_string = New_string + string[i]
print(New_string)


s = input().rstrip()
print(s[0].upper() + s[1:])


a = input()
x = list(a)
l = x[0].upper()
z = l + a[1:]
print(z)


def main():
	from sys import stdin, stdout
	s = stdin.readline().strip()
	stdout.write(s[0].upper() + s[1:])
main()


i = input()
if len(i) > 0 and len(i) <= 1000:
	if i.isalpha():
		if i[0].islower():
			a = i[0].upper() + i[1:len(i)]
			print(a)
		else:
			print(i)


import sys
string = sys.stdin.readline().rstrip('\n')
print(string[0].upper() + string[1:])


a = input()
A = a[0]
A2 = a[1:len(a)]
print(A.upper() + A2)


import sys
import math

def main():
	s = sys.stdin.readline().strip('\n')
	res = str(s[0]).capitalize() + s[1:]
	print(res)
main()


m = list(map(str, input()))
m[0] = m[0].capitalize()
print(*m, sep='')


n = input()
k = ord(n[0])
if k > 96:
	print(chr(k - 32) + n[1:])
else:
	print(n)


n = str(input())
k = list(n)
k1 = k.pop(0)
i = k1.upper()
j = ''.join(k)
print(str(i) + str(j))


import sys
print(sys.stdin.read(1).upper() + input())


word = input()
if word[0].isupper() == True:
	print(word)
else:
	new = str(word[0].upper() + word[1:])
	print(new)


withFile = 0
if withFile == 1:
	fin = open('input.txt', 'r')
	fout = open('output.txt', 'w')

def getl():
	if withFile == 0:
		return input()
	else:
		return fin.readline()

def printl(s):
	if withFile == 0:
		print(s)
	else:
		fout.write(str(s))

def get_arr():
	x = getl().split(' ')
	if x[-1] == '':
		x = x[:-1]
	return list(map(int, x))
s = getl()
x = s[0].upper()
x += s[1:]
printl(x)
if withFile == 1:
	fin.close()
	fout.close()


string = input()
if string[0].isupper():
	print(string)
else:
	print(string[0].upper(), end='')
	print(string[1:])


w = input()
newword = ''
if w[0] == w[0].lower():
	newword = newword + w[0].upper()
else:
	newword = newword + w[0].upper()
for x in range(1, len(w)):
	newword += w[x]
print(newword)


name = input()
if 0 < len(name) < pow(10, 3):
	print(name[0].upper() + name[1:])


str1 = input()
first_letter = str1[0]
first_letter = first_letter.upper()
print(first_letter + str1[1:])


def capitalizing(string):
	answer = string[0].upper() + string[1:]
	return answer
word = input()
print(capitalizing(word))


string = list(input())
alpha = 'abcdefghijklmnopqrstuvwxyz'
ALPHA = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
for i in range(26):
	if alpha[i] == string[0]:
		string[0] = ALPHA[i]
print(''.join(string))


def main():
	w = str(input())
	print(f'{w[0].upper()}{w[1:]}')
main()


s = input()
arr = []
for i in s:
	arr.append(i)
arr[0] = arr[0].upper()
s = ''
for i in range(len(arr)):
	s = s + arr[i]
print(s)


y = input()
inp = list(y)
inp[0] = inp[0].upper()
x = ''.join(inp)
print(x)


word = input()
x = list(word)
if len(word) <= 1000:
	x[0] = x[0].upper()
print(''.join(x))


name = str(input())
if name[0].islower():
	print(name[0].upper() + name[1:])
else:
	print(name)


string = str(input())
char = ord(string[0])
if (char >= 97) & (char <= 122):
	char = char - 32
	char = chr(char)
	print(char + string[1:])
else:
	print(string)


strin = input()
s1 = ''
t = list(strin)
t[0] = t[0].upper()
print(s1.join(t))


a = input()
m = []
for i in a:
	m.append(i)
m[0] = m[0].upper()
n = ''
for i in m:
	n += i
print(n)


n = input()
print(n[0].capitalize(), end='')
print(n[1:])


word = input()
print(f'{word[0].capitalize()}{word[1:]}')


letter = input()
print(letter[0].upper() + letter[1:])


import string
s = input()
s = s.replace(s[0], s[0].capitalize(), 1)
print(s)


s = input()
if len(s) > 0:
	ans = s[0].upper() + s[1:]
else:
	ans = s.upper()
print(ans)


def upperCase(inp):
	inp = list(inp)
	inp[0] = inp[0].upper()
	print(''.join(inp))
inp = input()
if inp[0].islower():
	upperCase(inp)
else:
	print(inp)


w = input()
st = w[0].upper()
s_new = st
s_new += w[1:]
print(s_new)


def cap(n):
	result = n[0].upper() + n[1:]
	return result
n = input('')
print(cap(n))


s = input()
if s[0] >= 'a' and s[0] <= 'z':
	print(s[0].upper(), end='')
else:
	print(s[0], end='')
print(s[1:len(s)])


def main():
	cap = input()
	return cap[0].capitalize() + cap[1:]
print(main())


a = list(input())
b = str(a[0])
a[0] = b.capitalize()
for i in a:
	print(i, end='')


stringIn = input()
print(str(stringIn[0]).upper() + stringIn[1:])


s = input()
c = s[0].upper()
ll = list()
ll.append(c)
ll.append(s[1:])
print(''.join(ll))


word1 = str(input(''))
letter = word1[0]
print(letter.upper() + word1[1:])


import sys
s1 = input()
print(s1[0].upper() + s1[1:])


n = input()
x = n[0]
a = []
b = ''
y = x.upper()
if y is not x:
	j = n[1:len(n)]
	a.append(y)
	a.append(j)
	b = ''.join(map(str, a))
	print(b)
else:
	print(n)


word = input()
nword = word[0].capitalize() + word[1:]
print(nword)


a = list(input())
if ord(a[0]) >= 97 and ord(a[0]) <= 123:
	a[0] = chr(ord(a[0]) - 32)
print(''.join(a))


from sys import stdin
(lines, line_index) = (stdin.readlines(), -1)

def get_line():
	global lines, line_index
	line_index += 1
	return lines[line_index]

def main():
	s = get_line().strip()
	if 'a' <= s[0] <= 'z':
		s = s[0].upper() + s[1:]
	print(s)
main()


text = input()
mylist = list(text)
cap = mylist[0].upper()
remain = mylist[1:]
print(cap + ''.join(remain))


str1 = input()
str2 = ''
if ord(str1[0]) < 97:
	print(str1)
else:
	str2 = chr(ord(str1[0]) - 32)
	str1 = str2 + str1[1:]
	print(str1)


string = input()
w = string[:1]
caca = w.upper() + string[1:]
print(caca)


n = input()
if ord(n[0]) >= 97 and ord(n[0]) <= 122:
	print(n[0].upper() + n[1:])
else:
	print(n)


class k:

	def cap(self, st):
		if ord(st[0]) not in range(60, 91):
			return st[0].capitalize() + st[1:]
		else:
			return st
ka = k()
print(ka.cap(input()))


t1 = input()
t1 = t1[0].upper() + t1[1:]
print(t1)


str = input()
final = str[0].capitalize() + str[1:]
print(final)


w = input()
o = w[0].upper()
oo = w[1:]
print(o + oo)


s = input()
if len(s) > 0 and s[0].islower():
	print(s[0].upper() + s[1:])
else:
	print(s)


str1 = input()
if len(str1) == 1:
	print(str1.upper())
elif len(str1) == 2:
	print(str1[0].upper() + str1[-1])
else:
	print(str1[0].upper() + str1[1:-1] + str1[-1])


s = input()
l = list(s)
print(str(l[0].upper()) + s[1:])


word = input()
a = word[0]
b = word[1:1001]
print(a.upper() + b)


palabra = input()
inicial = palabra[0]
resto = palabra[1:]
pregunta = inicial.isupper()
if pregunta == False:
	inicial = inicial.swapcase()
	print(inicial + resto)
else:
	print(inicial + resto)


def capitalization(s):
	return s[0].upper() + s[1:]
print(capitalization(input()))


n = input()
m = ''
m = m + n[0].upper()
for i in range(1, len(n)):
	m = m + n[i]
print(m)


s = input()
r = s[0].capitalize() + s[1:]
print(r)


s = input()
l = len(s)
i = 0
p = []
while i < l:
	p.append(s[i])
	i = i + 1
x = p[0]
p.pop(0)
c = x.upper()
p.reverse()
p.append(c)
p.reverse()
st = ''.join(p)
print(st)


a = str(input())
t = a[:1]
print(t.upper() + a[1:])


string = str(input())
string = list(string)
string[0] = str.upper(string[0])
ans = ''.join([str(i) for i in string])
print(ans)


s = input()
a = str(s[0])
if a.islower():
	a = a.upper()
print(a + s[1:])


s = input()
res = []
res.append(s[0].capitalize())
for i in s[1:]:
	res.append(i)
print(''.join(res))


slovo = input()
print('{}{}'.format(slovo[0].upper(), slovo[1:]))


n = input()
res = n[0].upper() + n[1:]
print(res)


from sys import stdin, exit
a = stdin.readline().rstrip()
print(a[0].upper() + a[1:])


s = input()
LIST = [s[i] for i in range(len(s))]
if ord(LIST[0]) >= 65 and ord(LIST[0]) <= 90:
	print(s)
if ord(LIST[0]) >= 97 and ord(LIST[0]) <= 122:
	num = ord(LIST[0]) - 32
	LIST[0] = chr(num)
	s = LIST[0]
	for j in range(1, len(LIST)):
		s = s + LIST[j]
	print(s)


t = str(input())
listt = []
for i in range(0, len(t)):
	a = t[0]
	if i == 0 and str(a) == a.upper():
		listt.append(a)
	elif i == 0 and str(a) == a.lower():
		a = a.upper()
		listt.append(a)
	else:
		b = t[i]
		listt.append(b)
print(*listt, sep='')


t = input()
print(t.replace(t[0], t[0].upper(), 1))


x = input().strip('\n\r')
print(x[0].upper() + x[1:len(x)])


inp = input()
s1 = inp.upper()
print(s1[0] + inp[1:])


word = input()
letters = list(word)
if letters[0].islower():
	letters[0] = letters[0].upper()
print(''.join(letters))


x = input()
result = x[0].upper() + x[1:]
print(result)


s = m = input()
if not s.istitle():
	m = s[0].upper()
	m += s[1:]
print(m)


n = input()
n = list(n)
x = n[0].upper()
n.remove(n[0])
n.insert(0, x)
for i in n:
	print(i, end='')


original_word = input()
new_ = original_word[0].upper()
new_word = new_ + original_word[1:]
print(new_word)


s = input()
print(s[0].capitalize(), end='')
for i in range(1, len(s)):
	print(s[i], end='')


a = list(input())
b = ord(a.pop(0))
print(chr(b - [32, 0][b < 96]), ''.join(a), sep='')


word = input()
initial = word[0]
other = word[1:]
if initial.isupper is True:
	print(word)
else:
	c = str.upper(initial)
	print(c + other)


i = input()
if len(i) <= 1000:
	print(i[0].upper() + i[1:len(i)])


n = str(input())
m = n[0].capitalize()
print(m, n[1:], sep='')


word = input()
s = list(word)
a = ''
if word[0].islower():
	s[0] = word[0].capitalize()
	n = a.join(s)
	print(n)
else:
	print(word)


string = input()
blank = ''
blank += string[0].upper()
for i in range(1, len(string)):
	blank += string[i]
print(blank)


try:
	st = input()
	for i in range(0, len(st)):
		if i == 0:
			print(st[i].upper(), end='')
		else:
			print(st[i], end='')
	pass
except Exception:
	pass


a = input()
out = ''
out += a[0].upper()
for i in range(1, len(a)):
	out += a[i]
print(out)


a = input(' ')
b = []
for i in range(0, len(a)):
	b.append(a[i])
b[0] = b[0].upper()
bstr = ''.join(b)
print(bstr)


a = input()
b = a.upper()
print(b[0], end='')
for t in a[1:]:
	print(t, end='')


list = input()
newlist = []
for i in range(0, len(list)):
	newlist.insert(i, list[i])
	if i == 0:
		newlist[0] = newlist[i].upper()
listToStr = ''.join(map(str, newlist))
print(listToStr)


st = input()
if ord(st[0]) > 90:
	st = st[0].upper() + st[1:]
print(st)


n = input()
m = n[0]
a = m.upper()
print(str(a) + str(n[1:]))


x = input()
v = ord(x[0])
if v >= 97 and v <= 122:
	print(chr(v - 32) + x[1:])
else:
	print(x)


s = list(input())
if ord(s[0]) > 90:
	s[0] = chr(ord(s[0]) - 32)
for i in s:
	print(i, end='')


a = input()
b = a[0].capitalize()
c = a[1:]
d = b + c
print(d)


def sol():
	s = list(input())
	l = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
	u = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']
	if s[0] in l:
		s[0] = u[l.index(s[0])]
		print(''.join(s))
	else:
		print(''.join(s))
try:
	sol()
except:
	pass


word = input()
n = len(word)
if ord(word[0]) >= 97:
	new_word = chr(ord(word[0]) - 32) + word[1:n]
else:
	new_word = word
print(new_word)


a = input()
b = a[0]
c = a[1:len(a)]
d = b.upper()
print(d + c)


a = str(input())
b = a[1:]
k = a[0].capitalize()
print(k + b)


n = input()
nlen = len(n)
n1 = n[0]
nr = n[1:]
n1 = n1.upper()
print(n1 + nr)


p = input()
if p[0] >= 'a' and p[0] <= 'z':
	print(chr(ord(p[0]) - 32) + p[1:])
else:
	print(p)


xxx = list(input(''))
xxx[0] = xxx[0].upper()
ddd = ''.join(xxx)
print(ddd)


n = input()
p = n[0]
if ord(p) <= 90 and ord(p) >= 65:
	print(n)
if ord(p) <= 122 and ord(p) >= 97:
	p = p.upper()
	k = p + n[1:]
	print(k)


s = input()
l = len(s)
first = s[0]
capital = first.upper()
print(capital + s[1:])


string = list(input())
string[0] = string[0].capitalize()
print(''.join(string))


s = input()
lst = list(s)
lst[0] = lst[0].upper()
print(''.join(lst))


n = input()
m = n[0].upper()
for i in n[1:]:
	m += i
print(m)


import re
import sys
from bisect import bisect, bisect_left, insort, insort_left
from collections import Counter, defaultdict, deque
from copy import deepcopy
from decimal import Decimal
from itertools import accumulate, combinations, combinations_with_replacement, groupby, permutations, product
from math import acos, asin, atan, ceil, cos, degrees, factorial, gcd, hypot, log2, pi, radians, sin, sqrt, tan
from operator import itemgetter, mul
from string import ascii_lowercase, ascii_uppercase, digits

def inp():
	return int(input())

def inlist():
	return list(map(int, input().split()))

def instr():
	s = input()
	return list(s[:len(s)])

def invr():
	return map(int, input().split())
s = instr()
s[0] = s[0].upper()
for i in s:
	print(i, end='')


st = input()
last = st[1:]
first = st[0].upper()
print(first + last)


s = ''
word = list(input())
for letter in word:
	if word[0].islower():
		word[0] = word[0].upper()
print(s.join(word))


s = str(input())
a = s[0].upper()
print(a, sep='', end='')
for i in range(1, len(s)):
	print(s[i], sep='', end='')


if 1:
	s = input()
	print(''.join((x[1].upper() if not x[0] else x[1] for x in enumerate(s))))


x = input()
a = x[0].upper()
l = list(x)
l[0] = a
x = ''.join(l)
print(x)


x = input()
new = list(x)
nw = new[0].upper()
new.remove(new[0])
new.insert(0, nw)
word = ''.join(new)
print(word)


word = input()
if str.islower(word[0]):
	print(chr(ord(word[0]) - 32) + word[1:len(word)])
else:
	print(word)


s = input()
a = str(s[0])
a = a.upper()
s = s.replace(s[0], a, 1)
print(s)


n = input()
l = []
for i in n:
	l.append(i)
l[0] = l[0].upper()
for j in l:
	print(j, end='')


num = input()
x = num[0].upper()
print(x + num[1:])


s = input()
t = s[0]
x = t.capitalize() + s[1:]
print(x)


x = str(input())
if len(x) == 1:
	print(x.capitalize())
else:
	z = x[:1 - len(x)]
	z = z.upper()
	y = x[1:]
	a = z + y
	print(a)


a = input()
b = a[0]
c = b.capitalize()
d = ''
i = 1
while i < len(a):
	d += a[i]
	i += 1
print(c + d)


inputWord = input()
print(inputWord[0].upper() + inputWord[1:])


s = input()
l = len(s)
for i in range(l):
	if i == 0:
		o = s[0].upper()
	else:
		o += s[i]
print(o)


string = input()
if string[0].islower():
	print(string[0].upper() + string[1:])
else:
	print(string)


data = input()
first = data[0].upper()
second = data[1:]
print(first + second)


_str = input()
print(_str[0].upper() + _str[1:])


def do(a):
	b = a[0].upper() + a[1:]
	return b
a = input()
print(do(a))


word = input()
List = [0] * len(word)
for k in range(len(word)):
	List[k] = word[k]
List[0] = List[0].upper()
for i in range(len(List)):
	print(List[i], end='')


word1 = list(input())
word1[0] = word1[0].upper()
print(''.join(word1))


x = input()
lst = list(x)
newlst = lst[0]
if newlst.islower() == True:
	newlst = newlst.upper()
s = ''
lst[0] = newlst
for i in range(len(lst)):
	s += lst[i]
print(s)


ent = input()
sol = ent[0].upper() + ent[1:]
print(sol)


n = input().strip()
n = list(n)
k = n[0]
n.pop(0)
k = k.upper()
n = ''.join(map(str, n))
print(k + n)


class Case:

	def __init__(self, word):
		self.word = word

	def solution(self):
		if len(self.word) < 1:
			return ''
		elif len(self.word) == 1:
			return self.word.capitalize()
		else:
			return self.word[0].capitalize() + self.word[1:]
word = input()
case = Case(word)
print('{}'.format(case.solution()))


def f():
	word = input()
	ch = word[0].upper()
	print(ch + word[1:])
f()


s = input()
m = s
s = list(s)
z = m.upper()
z = list(z)
x = []
x.append(z[0])
for i in range(1, len(s)):
	x.append(s[i])
p = ''
for i in range(len(x)):
	p += x[i]
print(p)


a = input()
print(a.replace(a[0], a[0].capitalize(), 1))


entrada = input()
if entrada[0].isupper():
	print(entrada)
else:
	print(entrada[0].upper() + entrada[1:])


n = input()
m = [p for p in n]
a = n[0].upper()
del m[0]
k = a + ''.join(m)
print(k)


word = input()
to_cap = word[0]
if ord(to_cap) >= 97 and ord(to_cap) < 123:
	to_cap = ord(to_cap) - 32
	to_cap = chr(to_cap)
print(to_cap + word[1:])


istr = input().strip()
print(istr[0].upper() + istr[1:])


a = input()
x = a[0]
x = x.upper()
print(x + a[1:len(a)])


s = str(input())
if 97 <= ord(s[0]) <= 122:
	s1 = chr(ord(s[0]) - 32)
	if s1.isdigit() == 0:
		for i in range(1, len(s)):
			s1 += s[i]
		print(s1)
else:
	print(s)


b = str(input())
b = b[0].upper() + b[1:]
print(b)


string = input()
l = list(string)
l[0] = l[0].upper()
s = ''.join(l)
print(s)


sl = input()
if sl[0].islower():
	sl = sl[0].upper() + sl[1:]
print(sl)


s = input().split()
for x in s:
	if len(x) == 0:
		continue
	print(x[0].upper() + x[1:], end='')
print()


lst = list(input())
c = str(lst[0])
lst[0] = c.capitalize()
s = ''.join(lst)
print(s)


x = str(input())
i = 0
s = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
ss = 'abcdefghijklmnopqrstuvwxyz'
if x[i] in s:
	print(x)
else:
	while i < len(ss):
		if x[0] == ss[i]:
			break
		i += 1
	print(s[i] + x[1:])


cmd = input()
print(cmd[0].upper() + cmd[1:])


s = input()
l = list(s)
if ord(l[0]) >= 65 and ord(l[0]) <= 90:
	pass
elif ord(l[0]) == 97:
	l[0] = 'A'
elif ord(l[0]) == 98:
	l[0] = 'B'
elif ord(l[0]) == 99:
	l[0] = 'C'
elif ord(l[0]) == 100:
	l[0] = 'D'
elif ord(l[0]) == 101:
	l[0] = 'E'
elif ord(l[0]) == 102:
	l[0] = 'F'
elif ord(l[0]) == 103:
	l[0] = 'G'
elif ord(l[0]) == 104:
	l[0] = 'H'
elif ord(l[0]) == 105:
	l[0] = 'I'
elif ord(l[0]) == 106:
	l[0] = 'J'
elif ord(l[0]) == 107:
	l[0] = 'K'
elif ord(l[0]) == 108:
	l[0] = 'L'
elif ord(l[0]) == 109:
	l[0] = 'M'
elif ord(l[0]) == 110:
	l[0] = 'N'
elif ord(l[0]) == 111:
	l[0] = 'O'
elif ord(l[0]) == 112:
	l[0] = 'P'
elif ord(l[0]) == 113:
	l[0] = 'Q'
elif ord(l[0]) == 114:
	l[0] = 'R'
elif ord(l[0]) == 115:
	l[0] = 'S'
elif ord(l[0]) == 116:
	l[0] = 'T'
elif ord(l[0]) == 117:
	l[0] = 'U'
elif ord(l[0]) == 118:
	l[0] = 'V'
elif ord(l[0]) == 119:
	l[0] = 'W'
elif ord(l[0]) == 120:
	l[0] = 'X'
elif ord(l[0]) == 121:
	l[0] = 'Y'
elif ord(l[0]) == 122:
	l[0] = 'Z'
print(*l, sep='')


wrd = input()
fstltr = wrd[0].upper()
nw_wrd = fstltr + wrd[1:]
print(nw_wrd)


user_word = input()
out_word = user_word[0].upper() + user_word[1:]
print(out_word)


a = input()
g = a[0]
g = g.upper()
print(g + a[1:])


s = str(input())
a = [str(i) for i in s]
for i in a:
	if i.islower() and a.index(i) == 0:
		a.remove(i)
		a.insert(0, i.upper())
	elif i.isupper() and a.index(i) == 0:
		a.remove(i)
		a.insert(0, i.upper())
s = ''
str_val = s.join(a)
print(str_val)


def cap(word):
	list_word = list(word)
	list_word[0] = list_word[0].upper()
	new_word = ''.join(list_word)
	return new_word
inp = input()
print(cap(inp))


import math
inp = lambda : (int, input().split())
a = list(input().split())
for i in a:
	tmp = i[0].upper() + i[1:]
	print(tmp, ' ', end='')


inpStr = input()
if inpStr[0].islower():
	print(chr(ord(inpStr[0]) - 32) + inpStr[1:])
else:
	print(inpStr)


def cap(s):
	st = s[0].upper()
	return st + s[1:]
s = input().strip()
print(cap(s))


n = input()
h = ''
for v in range(len(n)):
	if v == 0:
		h = n[v].upper()
	else:
		h = h + n[v]
print(h)


inp = input()
inp = list(inp)
inp[0] = inp[0].upper()
out = ''
for item in inp:
	out += item
print(out)


inout_str = input().strip()
inout_str = inout_str[0].upper() + inout_str[1:]
print(inout_str)


word = input()
y = word[0].upper() + word[1:]
print(y)


a = [str(i) for i in input()]
a[0] = a[0].upper()
print(''.join(a))


string = input()
if 97 <= ord(string[0]) <= 122:
	print(string[0].upper(), end='')
	print(string[1:])
else:
	print(string)


a = str(input())
b = a[1:]
d = a[0].upper() + b
print(d)


string = input()
st = list(string)
st[0] = st[0].upper()
b = ''.join(st)
print(b)


import string

def cap(word):
	return word[0].upper() + word[1:]
word = input()
print(cap(word))


n = list(input())
n[0] = n[0].upper()
r = ''.join(n)
print(r)


t = input()
t = list(t)
if len(t) > 1:
	x = t[0]
	y = t[1:]
	y = ''.join(map(str, y))
	x = x.upper()
	print(x, end='')
	print(y)
else:
	x = t[0]
	print(x.upper())


s = input()
if s[0].isupper():
	print(s)
else:
	print(chr(ord(s[0]) - 32), end='')
	for i in range(1, len(s)):
		print(s[i], end='')


n = list(input())
if 'a' <= n[0] and n[0] <= 'z':
	n[0] = chr(ord(n[0]) - 32)
elif 'A' <= n[0] and n[0] <= 'Z':
	pass
print(''.join(n))


z = input()
c = z[0]
x = c.upper() + z[1:]
print(x)


a = list(input().split())
b = str(a[0][0])
d = b.upper()
c = []
c.append(d)
for i in range(1, len(a[0])):
	c.append(a[0][i])
for i in range(len(c)):
	print(c[i], end='')


a = str(input())
check = a[0]
if check.isupper():
	print(a)
else:
	x = a[0].upper()
	rem = a[1:]
	ans = x + rem
	print(ans)


s = input()
n = len(s)
print(s[0].upper(), end='')
for i in range(1, n):
	if s[i - 1].isalpha():
		print(s[i], end='')
	else:
		print(s[i].upper(), end='')


s = input()
s = list(s)
if s[0].islower():
	s[0] = s[0].upper()
for i in range(len(s)):
	print(s[i], end='')
print()


word = input()
if word[0].islower():
	words = word[0].upper()
	print(words + word[1:])
else:
	print(word)


a = input()
b = list()
for i in range(0, len(a)):
	if i == 0:
		b.append(a[i].upper())
	else:
		b.append(a[i])
for item in b:
	print(item, end='')


s = str(input())
f = s[0]
s1 = f.upper() + s[1:]
print(s1)


try:
	take = input()
	if len(take) >= 1 and len(take) <= 10 ** 3:
		take_up = take[0].upper()
		new_string = take_up + take[1:len(take)]
		print(new_string)
except Exception as e:
	print(e)


parola = input()
lettera = parola[0]
resto = parola[1:]
lettera_maiuscola = lettera.upper()
print(lettera_maiuscola + resto)


st = str(input())
s = st[0]
s = s.capitalize()
l = st[1:]
st = s + l
print(st)


str1 = list(input())
str1[0] = str1[0].upper()
for i in str1:
	print(i, end='')


inp = input()
y = inp[0].upper()
print(y + inp[1:])


x = input()
t = x[0]
if t.islower():
	print(x.replace(t, t.upper(), 1))
else:
	print(x)


str_in = input()
if str_in[0].islower():
	str_in = str_in.replace(str_in[0], str_in[0].upper(), 1)
print(str_in)


word = input()
wlist = list(word)
for i in range(len(word)):
	if i == 0:
		wlist[0] = wlist[0].upper()
	print(wlist[i], end='')


t = input()
if not t[0].istitle():
	t1 = ord(t[0])
	t2 = t1 - 32
	t = chr(t2) + t[1:]
print(t)


word = input('')
x = []
for l in word:
	x.append(l)
x[0] = x[0].upper()
Word = str
Word = ''.join(x)
print(Word)


word = input('')
new = list()
lst = list()
for x in word:
	lst.append(x)
new.append(lst[0])
for z in new:
	a = z.upper()
b = a + word[1:]
print(b)


string = input()
if string[0].islower():
	print(string[0].capitalize(), end='')
	print(string[1:])
else:
	print(string)


def c():
	s = input()
	a = ''
	a += s[0].upper()
	for c in s[1:]:
		a += c
	print(a)
c()


str = input()
l = len(str)
c = str[0].upper()
print(c + str[1:l])


s = input()
w = s[0]
e = s[1:len(s)]
print(w.upper() + e)


p = list(input())
c = p[0].upper()
p[0] = c
print(''.join(p))


stringTeste = input()
print(stringTeste[0].upper() + stringTeste[1:])


x = input('')
a = len(x)
tem = 0
for i in x:
	if tem == 0:
		tem += 1
		i = i.upper()
		print(i, end='')
		continue
	print(i, end='')


a = input()
a = [ch for ch in a]
a[0] = a[0].capitalize()
tostr = ''.join(map(str, a))
print(tostr)


word = input()
order = ord(word[0])
if order >= 97 and ord(word[0]) <= 122:
	order -= 32
word = chr(order) + word[1:]
print(word)


def main():
	from sys import stdout
	inp = input()
	start_min = ord('a')
	end_min = ord('z')
	space = ord('a') - ord('A')
	if start_min <= ord(inp[0]) <= end_min:
		res = chr(ord(inp[0]) - space) + inp[1:]
	else:
		res = inp
	stdout.write(str(res))
main()


s = input()
res = s[0].capitalize() + s[1:len(s)]
print(res)


n = input()
s = n[0]
s.title()
print(s.upper(), n[1:], sep='')


a = input()
b = a[:1].upper() + a[1:]
print(b)


s = input()
s1 = s[0].upper()
l = len(s)
s2 = ''
for i in range(1, l):
	s2 = s2 + s[i]
s3 = s1 + s2
print(s3)


ch = input()
a = ''
if ch[0].islower() == True:
	a = ch[0].upper()
	ch1 = a + ch[1:len(ch)]
	print(ch1)
else:
	print(ch)


b = input()
if 'A' <= b[0] <= 'Z':
	print(b)
else:
	print(chr(ord(b[0]) - 32) + b[1:])


try:
	s = input()
	l = []
	a = ''
	for i in s:
		l.append(i)
	for j in range(len(l)):
		if j == 0:
			l[j] = l[j].upper()
			a = a + l[j]
		else:
			a = a + l[j]
	print(a)
except:
	pass


x = list(input())
res = []
for i in range(len(x)):
	if i == 0:
		res.append(x[i].capitalize())
	else:
		res.append(x[i])
print(''.join(res))


s = input()
if s[0] not in 'QWERTYUIOPLKJHGFDSAZXCVBNM':
	t = s[0].upper()
	print(t + s[1:])
else:
	print(s)


word = input()
first_letter = word[0]
new_letter = str.upper(first_letter)
word = new_letter + word[1:]
print(word)


import string
a = string.ascii_lowercase
b = string.ascii_uppercase
n = input()
index1 = 0
if n[0] in a:
	index1 = a.find(n[0])
	print(b[index1] + n[1:])
elif n[0] in b:
	print(n)


n = input()
array = []
for i in range(len(n)):
	array += [n[i]]
if 65 <= ord(n[0]) <= 90:
	print(n)
else:
	a = ord(n[0]) - 32
	x = chr(a)
	array[0] = x
	for i in range(len(array)):
		print(array[i], end='')


a = input()
a1 = a[0:1].upper()
r = a1 + a[1:len(a) + 1]
print(r)


a = input()
s = a[:1]
l = a[1:]
s = s.upper()
print(s, l, sep='')


string = input()
string = list(string)
string[0] = string[0].upper()
new = ''
for i in string:
	new += i
print(new)


line = input()
symbols = list(line)
symbols[0] = symbols[0].upper()
print(''.join(symbols))


import string
word = input('')
wordList = list(word)
if wordList[0] in string.ascii_uppercase:
	pass
elif wordList[0] in string.ascii_lowercase:
	wordList[0] = string.ascii_uppercase[string.ascii_lowercase.find(wordList[0])]
word = ''.join(wordList)
print(word)


word = input()
k = word[0].upper()
print(k + word[1:])


import sys
data = sys.stdin.readline()
print(data[0].upper() + data[1:])


import sys
fin = sys.stdin
fout = sys.stdout
S = fin.readline()
fout.write(S[0].capitalize() + S[1:] + '\n')
fout.close()


a = input()
print(''.join([a[i] if i != 0 else a[i].upper() for i in range(len(a))]))


char1 = input()
char2 = char1[0]
char3 = char2.capitalize()
print(char3 + char1[1:])


x = input()
a = x[0].upper()
for k in range(1, len(x)):
	a = a + x[k]
print(a)


letter = str(input())
g = letter[0]
G = g.upper()
print(G + letter[1:len(letter)])


alp = 'abcdefghijklmnopqrstuvwxyz'
ALP = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
s = input()
output = ALP[(alp + ALP).index(s[0]) % 26]
for i in s[1:]:
	output += i
print(output)


s = input()
f = s[0]
on = s[1:]
uc = f.upper()
a = f'{uc}{on}'
print(a)


i = input()
a = 0
B = ''
for j in i:
	if a == 0:
		j = j.upper()
		B = B + j
		a += 1
	else:
		B = B + j
print(B)


w = input()
x = len(w)
print(w[0].capitalize(), end='')
for i in range(1, x - 1):
	print(w[i], end='')
if x != 1:
	print(w[x - 1])


s = list(input())
if s[0].islower():
	s[0] = chr(ord(s[0]) - 32)
print(''.join(s))


cap = input()
length = len(cap)
print(cap[0].upper(), end='')
print(cap[1:])


z = input()
if ord(z[0]) > 90:
	print(z.replace(z[0], chr(ord(z[0]) - 32), 1))
else:
	print(z)


def word_capitalization():
	s = input()
	a = [s[0].upper(), s[1:]]
	z = ''
	z = z.join(a)
	print(z)
word_capitalization()


s = input()
s = s[:1].capitalize() + s[1:]
print(s)


i = input()
if ord(i[0]) >= 97:
	print(chr(ord(i[0]) - 32) + i[1:])
else:
	print(i)


s = input()
print(f'{s[:1].upper()}{s[1:]}')


n = [i for i in input()]
a = n[0].upper()
a.upper()
n[0] = a
c = ''.join(n)
print(c)


a = str(input())
a = list(a)
x = a[0]
x = x.upper()
a.pop(0)
a = a[::-1]
a.append(x)
print(*a[::-1], sep='')


def split(wrd):
	return [char for char in wrd]
wrd = input()
wrd = split(wrd)
wrd[0] = wrd[0].upper()
print(''.join(wrd))


try:
	s = input()
	b = s[0]
	c = s[1:len(s) + 1]
	print(b.upper() + c)
except:
	pass


a = input()
h = len(a)
m = h * ['']
for i in range(h):
	m[i] = a[i]
b = 'abcdefghijklmnopqrstuvwxyz'
c = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
if len(a) < 10 ** 3:
	for i in range(len(a)):
		if m[0] in b:
			for i in range(len(b)):
				if m[0] == b[i]:
					m[0] = c[i]
s = ''
for i in range(len(a)):
	s = s + m[i]
print(s)


x = input()
a = x[1:]
o = x.capitalize()
w = o[0] + a
print(w)


string = input()
if string[0].isupper():
	pass
else:
	string = string[0].upper() + string[1:]
print(string)


n = str(input())
if len(n) <= 10 ** 3:
	c = n[0].capitalize()
	j = c + n[1:]
	print(j)


n = input()
n = list(n)
if ord(n[0]) > 90:
	n[0] = ord(n[0]) - 32
	n[0] = chr(n[0])
	print(''.join(n))
else:
	print(''.join(n))


line = list(input())
line[0] = line[0].upper()
output = ''
for i in line:
	output = output + i
print(output)


x = input()
l = x[0].upper()
print(l + x[1:])


sm = input()
stri = ''
sm = list(sm)
sm[0] = sm[0].upper()
for i in sm:
	stri = stri + i
print(stri)


a = input()
c = a
if a[0].islower():
	a = a.capitalize()
	a = a[:1]
	c = c[1:]
	print(a + c)
else:
	print(a)


a = input('')
if a[0] == a[0].lower():
	print(a[0].upper() + a[1:])
else:
	print(a)


inp = list(input())
k = inp[0]
k = k.upper()
inp[0] = k
for i in inp:
	print(i, end='')


word = list(input())
first = word[0].upper()
del word[0]
first = list(first)
word = first + word
print(*word, sep='')


line = input()
if len(line) == 1:
	print(line.upper())
else:
	print(line[0].upper() + line[1:])


from string import *
str = input()
print(str[0].upper(), str[1:], sep='')


n = list(str(input()))
l = []
letter = n.pop(0)
cap = letter.upper()
l.append(cap)
for elem in n:
	l.append(elem)
new = ''.join(l)
print(new)


def main():
	s = input()
	if ord(s[0]) >= 97:
		print(chr(ord(s[0]) - 97 + 65) + s[1:])
	else:
		print(s[0] + s[1:])
main()


a = list(input())
b = a[0]
c = b.upper()
a[0] = c
d = ''.join(a)
print(d)


x = input()
if ord(x[0]) >= 97:
	z = ord(x[0]) - 32
	print(chr(z) + x[1:])
else:
	print(x)


line = input()
result = ''
for i in range(len(line)):
	if i == 0:
		result += line[0].upper()
	else:
		result += line[i]
print(result)


s = input()
if s[0] >= 'a' and s[0] <= 'z':
	print(s[0].swapcase(), end='')
else:
	print(s[0], end='')
for i in range(1, len(s)):
	print(s[i], end='')


x = input()
if ord(x[0]) < 91:
	print(x)
	exit()
str = ''
str += chr(ord(x[0]) - 32)
for i in range(1, len(x)):
	str += x[i]
print(str)


wl = list(input())
wl[0] = wl[0].upper()
print(''.join(wl))


inp = input()
ans = inp[0].upper() + inp[1:]
print(ans)


word = input()
capitalizedWord = word[0].upper() + word[1:]
print(capitalizedWord)


n = str(input())
a = n[:1]
a = a.upper()
n = n[1:]
print(a + n)


q = input()
cap = q[0]
q1 = q[1:]
cap = cap.capitalize()
cap += q1
print(cap)


s = str(input())
a = s[0]
a = a.upper()
t = a + s[1:]
print(t)


x = input()
for iter in range(len(x)):
	if iter == 0:
		if ord(x[iter]) > 96:
			print(chr(ord(x[iter]) - 97 + 65), end='')
		else:
			print(x[iter], end='')
	else:
		print(x[iter], end='')


import sys
word = input()
print(word[0].capitalize() + word[1:])


word = list(input())
if len(word) > 0:
	word[0] = word[0].upper()
print(''.join(word))


s = list(input())
c = s[0]
s[0] = c.upper()
print(''.join(s))


s1 = list(input())
if s1[0] >= 'a' and s1[0] <= 'z':
	x = ord(s1[0])
	x -= 32
	s1[0] = chr(x)
for i in s1:
	print(i, end='')


str = input()
A = str[0]
str1 = str[1:]
print(A.upper() + str1)


str = list(input())
print(str[0].upper(), end='')
print(''.join(str[1:]))


s = input()
l = len(s)
s1 = ''
s1 = s[0].upper() + s[1:l]
print(s1)


a = input()
b = []
for i in a:
	b.append(i)
c = b[0].upper()
b[0] = c
for i in b:
	print(i, end='')


x = [i for i in input()]
x[0] = x[0].capitalize()
print(''.join(x))


word = str(input())
letters = []
for i in word:
	letters.append(i)
letters[0] = letters[0].upper()
for x in range(len(letters)):
	print(letters[x], end='')


frase = input()
if len(frase) < 1000:
	M = frase.upper()
	n = frase[0]
	N = n.upper()
	print(N + frase[1:])


x = 'abcdefghijklmnopqrstuvwxyz'
X = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
s = input()
i = x.count(s[0])
if i == 0:
	print(s)
else:
	ss = X[x.index(s[0])]
	ss += s[1:]
	print(ss)


in_str = str(input())
process_str = in_str[0].upper()
print(process_str + in_str[1:])


word = input()
word_list = []
for i in word:
	word_list.append(i)
word_list[0] = word[0].upper()
print(''.join(word_list))


N = str(input())
N1 = N[:1].capitalize()
print(N1 + N[1:])


import string
a = input()
a = a[0].upper() + a[1:]
print(a)


var = input()
var = var[0].upper() + var[1:]
print(var)


inputWord = input()
print(inputWord[0].capitalize() + inputWord[1:len(inputWord)])


string = input()
L = list(string)
L[0] = L[0].upper()
string1 = ''.join((x for x in L))
print(string1)


a = input()
b = a[0]
if not b.isupper():
	a = b.upper() + a[1:]
print(a)


a = input()
first = a[0]
first_cap = first.upper()
answer = first_cap + a[1:]
print(answer)


s = input()
k = ord(s[0])
if k >= 97:
	print(chr(k - 32), s[1:], sep='')
else:
	print(s)


answer = str(input())
word = list(answer[0].title() + answer[1:])
print(''.join(word))


str = input()
nstr = str[0]
ystr = nstr.capitalize()
zstr = ystr + str[1:]
print(zstr)


s = str(input())
sk = s[0].upper()
sl = sk + s[1:]
print(sl)


n = input()
if n.isupper() == False:
	n = n[0].upper() + n[1:]
print(n)


a = input().strip()
b = a[0].upper() + a[1:]
print(b)


a = input()
print(a[:1].upper() + a[1:len(a)])


Arr = input()
print(Arr[0].upper() + Arr[1:])


import sys
word = sys.stdin.readline().strip()
if word[0].islower():
	word = word[0].upper() + word[1:]
print(word)


s = input()
s_list = list(s)
s_list[0] = s_list[0].upper()
print(''.join([str(i) for i in s_list]))


input_string = input()
new_string = input_string[0].upper()
full_string = new_string + input_string[1:]
print(full_string)


ch = input()
L = []
ch1 = ''
for i in ch:
	L.append(i)
L[0] = L[0].upper()
ch1 = ''.join(L)
print(ch1)


word = input()
if word[0] >= 'A' and word[0] <= 'Z':
	print(word)
else:
	replace = chr(ord(word[0]) - 32)
	word = replace + word[1:]
	print(word)


s = input()
l = len(s)
m = s[0]
m = m.upper()
print(m, end='')
for x in range(1, l):
	print(s[x], end='')


w = input()
al1 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
al2 = 'abcdefghijklmnopqrstuvwxyz'
if w[0] in al2:
	s = al2.find(w[0])
	w = al1[s] + w[1:len(w)]
print(w)


x = input()
word = []
for i in range(len(x)):
	word.append(x[i])
	if 64 + 32 < ord(word[i]) < 64 + 29 + 32 and i == 0:
		word[i] = chr(ord(word[i]) - 32)
	print(word[i], end='')


word = input()
askii = []
letters = []
for i in range(len(word)):
	askii.append(ord(word[i]))
if 122 >= askii[0] >= 97:
	askii[0] = askii[0] - 32
else:
	pass
for j in range(len(word)):
	letters.append(chr(askii[j]))
ans = ''.join(letters)
print(ans)


def capitalization(word):
	print(word[0].upper() + word[1:])
word = input()
capitalization(word)


str = input()
S = list(str)
if ord(S[0]) > 96:
	S[0] = chr(ord(S[0]) - ord(' '))
print(''.join(S))


s = input()
s2 = s[0].upper()
print(s2 + s[1:])


a = list(str(input()))
A = a[0]
a.pop(0)
A1 = A.capitalize()
a.insert(0, A1)
print(''.join(a))


raw_str = input('')
final_str = ''
for i in range(len(raw_str)):
	if i == 0:
		final_str = final_str + raw_str[i].upper()
	else:
		final_str = final_str + raw_str[i]
print(final_str)


s = input()
f = s[0:1]
rem = s[1:]
print(f.upper() + rem)


inp = input()
inp_ls = list(inp)
ans_ls = list()
ans_ls.append(inp_ls[0].upper())
for i in range(1, len(inp_ls)):
	ans_ls.append(inp_ls[i])
ans = ''.join(ans_ls)
print(ans)


myString = str(input())
x = myString[0].upper()
x = x + myString[1:]
print(x)


s = input()
if len(s) < 2:
	print(s.upper())
else:
	print(s[0].upper() + s[1:])


a = input()
s = ''
if ord(a[0]) > 90:
	s += chr(ord(a[0]) - 32)
else:
	s += a[0]
for i in range(1, len(a)):
	s += a[i]
print(s)


s = input()
if 'A' <= s[0] <= 'Z':
	print(s)
else:
	print(s[0].upper() + s[1:])


mi = input()
print(mi[0].upper() + mi[1:])


str = input()
if len(str) <= 1000:
	list = list(str)
	list[0] = list[0].upper()
	str2 = ''.join(list)
	print(str2)


a = input()
samp = a[0].upper()
a = a[:0] + samp + a[1:]
print(a)


a = list(input())
try:
	a[0] = a[0].upper()
except:
	print()
else:
	print(''.join(a))


x = input()
X = ['none'] * len(x)
for i in range(len(x)):
	X[i] = x[i]
X[0] = X[0].upper()
for i in X:
	print(i, end='')


word = input()
l = len(word)
print(f'{word[0].upper()}{word[1:l]}')


import string
word = input()
if word[0].islower():
	word = word[0].upper() + word[1:]
print(word)


string = input()
final_string = string[0].title() + string[1:]
print(final_string)


n = list(str(input()))
c = []
for i in range(len(n)):
	if i == 0:
		c.append(n[i])
		del n[0]
d = ''.join(map(str, c))
if d.islower():
	print(d.upper() + ''.join(map(str, n)))
else:
	print(d.upper() + ''.join(map(str, n)))


w = list(input())
if w[0].isupper() == True:
	print(''.join(w))
else:
	w[0] = w[0].upper()
	print(''.join(w))


x = input('')
if x[0] == x[0].lower():
	s = x[0].upper()
	print(s + x[1:len(x)])
else:
	print(x)


s = input()
if 97 <= ord(s[0]) <= 122:
	s = chr(ord(s[0]) - 32) + s[1:len(s)]
print(s)


def main():
	word = input()
	return word[0].upper() + word[1:]

def ints_from_input():
	return (int(i) for i in input().split())
print(main())


def capitalize(word):
	firstLetter = word[0].upper()
	finalWord = firstLetter + word[1:]
	return finalWord

def main():
	word = input()
	print(capitalize(word))
main()


import sys
n = sys.stdin.readline()
print(n[0].upper() + n[1:])


line = input()
if line[0] == line.upper()[0]:
	print(line)
else:
	print(line.upper()[0], end='')
	for i in range(1, len(line)):
		print(line[i], end='')


def slowa():
	slowo = input()
	if ord(slowo[0]) >= 97:
		wynik = chr(ord(slowo[0]) - 32) + slowo[1:]
	else:
		return slowo
	return wynik
print(slowa())


cap = str(input())
caplist = list(cap)
caplist[0] = caplist[0].upper()
print(''.join((str(k) for k in caplist)))


w = input()
if len(w) > 0 and w[0].islower():
	c = w[0].upper()
	print(c + w[1:len(w)])
else:
	print(w)


s = input()
letra_inicial = s[0]
resto = s[1:]
letra_inicial = letra_inicial.upper()
print(letra_inicial + resto)


txt = list(input())
if txt[0] >= 'a' and txt[0] <= 'z':
	txt[0] = chr(ord(txt[0]) - 32)
print(''.join(txt))


def go(s):
	s = list(s)
	s[0] = s[0].upper()
	return ''.join(s)
ls = input()
print(go(ls))


string = list(input())
n = len(string)
newstring = []
for i in range(n):
	if i == 0:
		if string[i] >= 'a':
			newstring.append(string[i].swapcase())
		else:
			newstring.append(string[i])
	else:
		newstring.append(string[i])
print(''.join(newstring))


word = input()
var = word[0]
if not (ord(var) >= 65 and ord(var) <= 90):
	var_2 = var.upper()
	new_var = word[1:]
	print(var_2 + new_var)
else:
	print(word)


w = input()
k = len(w)
s = []
if 'a' <= w[0] <= 'z':
	t = ord(w[0]) - ord('a') + ord('A')
	s.append(chr(t))
else:
	s.append(w[0])
for i in range(1, k):
	s.append(w[i])
print(''.join(s))


k = input()
print(k[0].upper(), end='')
for i in k[1:]:
	print(i, end='')


a = []
b = input()
for i in b:
	a.append(i)
a[0] = a[0].upper()
print(''.join(a))


d = input()
a = d[0]
d = d.replace(a, a.upper(), 1)
print(d)


n = list(input())
ans = ''
if n[0] == n[0].upper():
	for i in n:
		ans += i
else:
	n[0] = n[0].upper()
	for i in n:
		ans += i
print(ans)


n = input()
if ord(n[0]) >= 97 and ord(n[0]) <= 122:
	print(chr(ord(n[0]) - 32), end='')
else:
	print(n[0], end='')
print(n[1:])


def ink():
	a = input()
	b = a[0].upper() + a[1:]
	print(b)
ink()


word = input()
print(word[0].title() + word[1:])


def capitalize_word(word):
	ord_Z = ord('Z')
	ord_A = ord('A')
	first_ord = ord(word[0])
	if not ord_A <= first_ord <= ord_Z:
		word = chr(first_ord - 32) + word[1:]
	return word
word = input()
print(capitalize_word(word))


import math

def get_int_vector():
	return [int(x) for x in input().split()]
seq = input()
seq = list(seq)
if seq[0].islower():
	seq[0] = seq[0].upper()
print(''.join(seq))


print(''.join((x[1].upper() if not x[0] and ord(x[1]) >= 97 else x[1] for x in enumerate(input()))))


p = input()
if p.istitle():
	print(p)
else:
	p = list(p)
	p[0] = p[0].upper()
	p = ''.join(p)
	print(p)


n = input()
newString = n[0].upper()
print(newString + n[1:])


mys = input()
s = list(mys)
s[0] = s[0].upper()
listToStr = ''.join(map(str, s))
print(listToStr)


txt = str(input())
first_char = txt[0]
rest_string = txt[1:]
if first_char.islower():
	first_char = first_char.upper()
print(first_char + rest_string)


a = input()
l = list(a)
l[0] = l[0].capitalize()
k = ''.join(l)
print(k)


stri = input()
o = stri[0]
ohh = stri[1:]
o = o.capitalize()
print(o + ohh)


a = input()
d = len(a)
b = str(a[0])
x = b.upper()
c = x + a[1:d]
print(c)


def word_cptl(word):
	first_letter = word[0].upper()
	final = first_letter + word[1:]
	return final
a = word_cptl(input())
print(a)


s = input()
p = list(s)
p[0] = p[0].capitalize()
for i in p:
	print(i, end='')


s = list(map(str, input()))
s[0] = s[0].upper()
a = ''
for _ in s:
	a += _
print(a)


from sys import stdin
A = stdin.readline()
if ord(A[0]) < 97:
	print(A)
else:
	B = chr(ord(A[0]) - 32)
	for t in range(1, len(A)):
		B += A[t]
	print(B)


s = list(input())
if s[0] > 'Z':
	s[0] = s[0].upper()
print(*s, sep='')


ligma = list(input())
if ord(ligma[0]) > 90:
	ligma[0] = chr(ord(ligma[0]) - 32)
print(''.join(ligma))


teste = input()
teste = teste[0].upper() + teste[1:]
print(teste)


string = input()
if string[0].upper() == string[0]:
	print(string)
else:
	st = ''
	st = string[0].upper() + string[1:len(string)]
	print(st)


s = input()
i = 0
while i < len(s):
	if i == 0:
		print(s[i].upper(), end='')
	else:
		print(s[i], end='')
	i += 1


from sys import stdin, stdout
a = stdin.readline()
b = a[0].upper() + a[1:len(a)]
stdout.write(b)


def main():
	string = input()
	alphabet = 'QWERTYUIOPLKJHGFDSAZXCVBNM'
	string = list(string)
	for char in alphabet:
		if ord(string[0]) - ord(char) == 32:
			string[0] = char
			break
	print(''.join(string))
main()


def render(input):
	return input[:1].upper() + input[1:]

def main():
	print(render(input()))
main()


str1 = input()
str2 = list(str1)
if str2[0].islower():
	str2[0] = str2[0].upper()
print(''.join(str2))


s = input()
answer = ''
answer += s[0].upper()
answer += s[1:]
print(answer)


import math
import os
import sys
import re
import itertools
import functools
import operator
s = list(input())
s[0] = s[0].upper()
print(''.join(s))


s = input()
res = ''
if len(s) >= 1:
	res += s[0].upper()
res += s[1:]
print(res)


def main():
	i = input()
	s = ''
	s += i[0].upper()
	s += i[1:]
	print(s)
main()


def fun(s):
	lst = list(s)
	if lst[0].isupper():
		return s
	else:
		lst[0] = lst[0].capitalize()
		s = ''.join(lst)
		return s
print(fun(input()))


def getlist(tcast):
	return [tcast(x) for x in input().strip().split(' ')]

def getvar(tcast):
	return tcast(input().strip())
w = getvar(str)
if len(w) <= 1:
	print(w.upper())
else:
	print(w[0].upper() + w[1:])


n = input()
n1 = n[:1]
n2 = n[1:]
n1 = n1.upper()
print(n1 + n2)


s = input()
c = s[0]
if c.isupper() == False:
	s = chr(ord(c) - 32) + s[1:]
print(s)


s = input()
x = s[0].upper()
for i in s[1:]:
	x += i
print(x)


word = input()
if ord(word[0]) >= 65 and ord(word[0]) <= 90:
	print(word)
else:
	print(chr(ord(word[0]) - 32) + word[1:])


word = str(input())
letter = word[0::len(word)]
residue = word[1:len(word)]
print(letter.upper() + residue)


txt = str(input())
if 65 <= ord(txt[0]) <= 90:
	print(txt)
else:
	a = ord(txt[0])
	txt = chr(a - 32) + txt[1:]
	print(txt)


word = input()
n = word[0]
n = n.capitalize()
print(n, end='')
for i in range(1, len(word)):
	print(word[i], end='')


s = input()
a = s[0]
a = a.upper()
ss = s[1:]
sss = a + ss
print(sss)


n = input()
t = ''
t = t + n[0]
t = t.upper()
t = t + n[1:]
print(t)


str1 = input()
lst = list(str1)
a = lst[0].upper()
b = lst[1:]
c = ''.join(b)
print(a + c)


a = input()
q = a[0:1]
q1 = q.capitalize()
a1 = q1 + a[1:]
print(a1)


t = str(input())
p = len(t)
j = t[0].capitalize()
print(j + t[1:len(t)])


n = input()
m = n.upper()
list_n = list(n)
list_m = list(m)
if list_n[0] == list_m[0]:
	print(n)
else:
	list_n[0] = list_m[0]
	n = ''.join(list_n)
	print(n)


x = input()
if ord(x[0]) > 96 and ord(x[0]) < 123:
	c1 = chr(ord(x[0]) - 32)
	c2 = x[1:]
	print(c1 + c2)
else:
	print(x)


str1 = input()
x = str1[0]
if x.isupper == True:
	print(str1)
else:
	y = x.upper()
	z = str1[1:]
	str2 = y + z
	print(str2)


a = input()
d = a[0]
b = a[0]
c = b.upper()
if len(a) == 1:
	print(c)
else:
	print(c + a[1:])


strWord = input()
if strWord[0].isupper():
	print(strWord)
else:
	strword = list(strWord)
	a = strword[0]
	b = a.upper()
	strword[0] = b
	print(''.join(strword))


text = input()
if text[0].isupper():
	print(text)
else:
	print(text[0].upper() + text[1:])


w = input()
w1 = w[0]
w2 = w[1:]
w1 = w1.upper()
new_w = w1 + w2
print(new_w)


import math
from sys import stdin

def si():
	return str(input())

def ii():
	return int(input())

def mi():
	return map(int, input().split())

def li():
	return list(mi())
t = si()
m = t[1:len(t)]
print(t[0].upper() + m)


import sys
string = str(input())
print(string[0].upper() + str(string[1:len(string)]))


string = input()
alpha = 'abcdefghijklmnopqrstuvwxyz'
firstletter = string[0]
if firstletter in alpha:
	print('{}{}'.format(firstletter.upper(), string[1:]))
else:
	print(string)


def main():
	word = input()
	if word[0] == word[0].lower():
		word = word[0].upper() + word[1:]
		print(word)
	else:
		print(word)
main()


word = input()
firstChar = word[0]
firstChar = firstChar.upper()
word = firstChar + word[1:]
print(word)


word = str(input())
new_word = word[0].capitalize() + word[1:]
print(new_word)


string = str(input())
string = string[:1].upper() + string[1:]
print(string)


inpt = str(input())
print(inpt[0].capitalize() + inpt[1:])


entrada = input()
salida = entrada[0].upper() + entrada[1:len(entrada)]
print(salida)


string = input()
print(f'{string[0].capitalize()}{string[1:]} ')


s = input()
if s[0].isalpha():
	if s[0].islower():
		b = chr(ord(s[0]) - 32)
		print(b + s[1:])
	else:
		print(s)


word = input('')
word2 = []
if len(word) >= 10000:
	pass
else:
	for i in range(1):
		word1 = word[i].upper()
		wordx = list(word)
		wordx.pop(0)
		wordx = ''.join(wordx)
		word2.append(word1 + wordx)
print(''.join(word2))


word = input()
first = word[0].title()
second = word[1:]
print(first + second)


text = input()
u = text[0]
a = u.upper()
b = text[1:]
print(a + b)


N = input()
print(N[0].capitalize() + N[1:len(N)])


word = input()
n = word[0].capitalize()
word = word[1:]
print(n + word)


n = input('')
print(n[0].capitalize() + n[1:len(n)])


def main():
	string = input()
	if len(string) == 1:
		print(string[0].upper())
	else:
		print(string[0].upper() + string[1:])
main()


import re
s = input()
if s[0] >= 'A' and s[0] <= 'Z':
	print(s)
else:
	s = re.sub('([a-zA-Z])', lambda x: x.groups()[0].upper(), s, 1)
	print(s)


data = list(input())
if data[0].islower():
	for i in range(len(data)):
		if i == 0:
			print(data[i].upper(), end='')
		else:
			print(data[i], end='')
else:
	for i in range(len(data)):
		print(data[i], end='')


A = input()
temp = A[0]
temp = temp.upper()
A = A[1:]
print(temp + A)


parola = input('')
parola_minusc = parola[0]
parola_maiusc = parola_minusc.upper()
parola2 = parola[1:]
print(parola_maiusc + parola2)


n = input()
list = [word[0].upper() + word[1:] for word in n.split()]
s = ' '.join(list)
print(s)


A = input()
Cap = A.capitalize()
print(Cap[0] + A[1:len(A)])


s = input('')
p = len(s)
l = []
output = ''
for k in range(0, p):
	l.append(s[k])
q = l[0]
f = q.upper()
l[0] = f
for w in range(0, p):
	output = output + l[w]
print(output)


n = input()
print(n[:1].capitalize() + n[1:])


x = input()
if x[0].islower():
	print(x[0].upper(), x[1:len(x)], sep='')
else:
	print(x)


m = list(input())
a = m[0].upper()
for i in range(1, len(m)):
	a = str(a) + str(m[i])
print(a)


def FirstLetterUpper(string):
	a = string[0]
	b = string[1:-1]
	e = string[-1]
	f = int(len(string))
	c = a.capitalize()
	if f == 1:
		d = c + b
	else:
		d = c + b + e
	return d
str1 = input()
output = FirstLetterUpper(str1)
print(output)


s = list(input())
if ord(s[0]) > 96:
	s[0] = chr(ord(s[0]) - 32)
print(''.join(s))


s = input()
sol = ''
n = len(s)
for i in range(n):
	if i == 0:
		a = s[i].upper()
	else:
		a = s[i]
	sol += a
print(sol)


line = str(input())
A = []
A.append(line[0].upper())
for i in range(len(line) - 1):
	A.append(line[i + 1])
print(''.join(A))


import math as mt
import sys
from collections import *
inf = float('inf')

def ii():
	return int(input())

def mii():
	return map(int, input().split())

def lii():
	return list(map(int, input().split()))

def gmat(n, m):
	return [[0] * m for _ in range(n)]

def imat(n):
	return [list(mii()) for _ in range(n)]
try:
	sys.stdin = open('data\\a.in', 'r')
	input = sys.stdin.readline
except:
	pass
s = input()
print(s[0].upper() + s[1:])


s = input()
result = s[0].title() + s[1:]
print(result)


def main():
	word = input()
	result = []
	result.append(word[0].upper())
	result += word[1:]
	print(''.join(result))
main()


s = input()
sr = s[0].capitalize()
print(sr + s[1:])


s = input()
b1 = s[0].upper()
print(b1 + s[1:])


s = input()
if ord(s[0]) >= 97:
	n = chr(ord(s[0]) - 97 + 65)
	s = n + s[1:]
print(s)


y = input()
s = ''
for i in range(len(y)):
	if i == 0:
		if 97 <= ord(y[0]) <= 122:
			s += chr(ord(y[0]) - 32)
		else:
			s += y[0]
	else:
		s += y[i]
print(s)


s = input()
l = []
for i in s:
	l.append(i)
l[0] = l[0].upper()
p = ''
for i in l:
	p = p + i
print(p)


a = input()
if ord(a[0]) > ord('Z'):
	b = chr(ord(a[0]) + (ord('A') - ord('a')))
	print(b, end='')
	if len(a) > 1:
		print(a[1:])
else:
	print(str(a))


n = input()
a = list(n)
a[0] = a[0].upper()
str1 = ''.join(a)
print(str1)


word = str(input())
word_cap = ''
word_cap += word[0].upper()
for letter in range(1, len(word)):
	word_cap += word[letter]
print(word_cap)


i = input()
if i[0] == i[0].upper():
	print(i)
else:
	print(i[0].upper() + i[1:])


import math
import sys
import string

def ri():
	return input()

def ii():
	return int(input())

def li():
	return input().split()

def mi():
	return list(map(int, input().split()))
s = ri()
if s[0].isupper():
	print(s)
else:
	print(s[0].upper() + s[1:])


string = input()
output = ''
if 97 <= ord(string[0]) <= 122:
	print(chr(ord(string[0]) - 32) + string[1:])
else:
	print(string)


a = input()
b = ''
i = 1
if a[0] == a[0].upper():
	print(a)
else:
	b = b + a[0].upper()
	while len(b) < len(a):
		b = b + a[i]
		i = i + 1
	print(b)


frase = ''
frase = input()
m = ord(frase[0])
s = 0
if m > 96 and m < 123:
	s = m - 32
	solucion = chr(s) + frase[1:]
	frase = solucion
print(frase)


b = input()
a = []
for i in range(len(b)):
	a.append(b[i])
if a[0].isupper() == True:
	for i in a:
		print(i, end='')
else:
	a[0] = a[0].upper()
	for i in a:
		print(i, end='')


def ii():
	return int(input())

def si():
	return input()

def mi():
	return map(int, input().split())

def li():
	return list(mi())
l = ['a', 'e', 'i', 'o', 'u', 'y', 'A', 'E', 'O', 'I', 'U', 'Y']
n = 5
s = si()
a = ord(s[0])
if a > 90:
	a -= 32
ans = chr(a)
for i in range(1, len(s)):
	ans += s[i]
print(ans)


x = input()
a = ord(x[0])
if a >= 92 and a <= 122:
	x = chr(a - 32) + x[1:]
print(x)


s = input()
s = s.replace(s[0], s[0].capitalize(), 1)
print(s)


a = input()
if a[0] == a[0].upper():
	print(a)
elif a[0] == a[0].lower():
	print(a[0].upper() + a[1:])


from sys import stdin
inp = stdin.readline()
if len(inp) > 0 and len(inp) <= 1001:
	print(inp[0].upper() + inp[1:])
else:
	print('Error')


a = input()
b = a[0]
c = b.upper()
d = a[1:]
e = c + d
print(e)


s = input()
m = slice(1, len(s))
b = s[m]
a = s[0].upper()
n = a + b
print(n)


n = list(input())
k = n[0]
m = k.upper()
l = ''
for i in range(0, len(n)):
	if i == 0:
		l += m
	else:
		l += n[i]
print(l)


a = list(input())
a[0] = a[0].title()
a = ''.join(a)
print(a)


n = input()
k = n[0]
m = k.upper()
o = n[1:]
print(m + o)


big = ''
stroke = input()
big = stroke[0].title()
anse = big + stroke[1:]
print(anse)


x = list(input())
x[0] = x[0].upper()
print(*x, sep='')


word = list(input())
word[0] = word[0].capitalize()
word = ''.join(word)
print(str(word))


inp = list(input())
result = ''
for i in range(len(inp)):
	if i == 0:
		result += inp[i].upper()
	else:
		result += inp[i]
print(result)


word = input()
listed = list(word)
if listed[0] == listed[0].upper():
	print(word)
else:
	changed = listed[0]
	capital = changed.upper()
	listed[0] = capital
	print(''.join(listed))


n = input().strip(' ')
print(n[0].upper() + n[1:])


a = str(input())
b = list(a)
c = b[0].upper()
d = len(b)
e = 1
print(c, end='')
for x in range(1, d):
	print(b[x], end='')


a = str(input(''))
b = a[0].capitalize()
c = a[1:]
result = str(b) + str(c)
print(result)


s = input()
if s[0].isupper():
	print(s)
else:
	ns = s[0]
	ns = ns.upper()
	ns += s[1:]
	print(ns)


inputStr = input()
if inputStr[0] == inputStr[0].upper():
	print(inputStr)
else:
	outputStr = inputStr[0].upper() + inputStr[1:]
	print(outputStr)


string = input()
length = len(string)
first = string[0].upper()
second = string[1:length]
output = first + second
print(output)


s = input()
if s[0:1].isupper() == False:
	s = s[0:1].upper() + s[1:len(s)]
print(s)


l = list(input())
delimiter = ''
s = str(l[0].upper()) + delimiter.join(l[1:])
print(s)


def capital(s):
	if ord(s[0]) >= 97 and ord(s[0]) <= 122:
		s[0] = chr(ord(s[0]) - 32)
	print(*s, end='', sep='')
s = list(input())
capital(s)


s = input()
m = s[0].upper()
l = list(s)
n = l.pop(0)
a = ''.join(l)
print(m + a)


word = input()
new = word[0].capitalize()
for s in word:
	new += s
print(new[0], end='')
print(new[2:])


strs = input()
strs = strs[0].upper() + strs[1:]
print(strs)


inp = input()
up = inp[0].upper()
rest = inp[1:]
print(up + rest)


s = input()
first = s[0].upper()
ans = first + s[1:len(s)]
print(ans)


x = input()
h = list(x)
ucount = 0
lcount = 0
h = [ord(j) for j in h]
if h[0] > 96 and h[0] < 123:
	h[0] = h[0] - 32
h = [chr(j) for j in h]
x = ''.join(h)
print(x)


word1 = input()
word2 = word1[0].upper() + word1[1:]
print(word2)


n = list(input())
if n[0].islower():
	n[0] = n[0].upper()
else:
	pass
print(''.join((str(x) for x in n)))


a = input()
y = a.upper()
x = y[0]
z = a[1:]
l = x + z
print(l)


def f(x):
	return x[0].upper() + x[1:len(x)]
s = input()
print(f(s))


s = input()
l = []
new = ''
ss = ''
for char in s:
	l.append(char)
c = l[0]
s = c.capitalize()
z = l[1:]
for x in z:
	new += x
ss = s + new
print(ss)


x = str(input())
s1 = str()
if x[0].islower():
	s1 = s1 + x[0].upper() + x[1:len(x)]
else:
	s1 = x
print(s1)


n = str(input())
if n[0].isupper():
	print(n)
else:
	print(n[0].upper(), end='')
	n1 = n[1:len(n)]
	print(n1)


word = input()
a = word[0]
b = a.upper()
list1 = list(word)
del list1[0]
list1.insert(0, b)
print(''.join(list1))


M = list(map(str, input()))
u = ord(M[0])
if u >= 91:
	u -= 32
M[0] = chr(u)
for i in M:
	print(i, end='')


str1 = input()
str2 = ''
if len(str1) <= 1000:
	str2 += str1[0].upper()
	str2 += str1[1:]
	print(str2)


import sys
lines = sys.stdin.readlines()
for linea in lines:
	c = linea.split()
	c = list(map(str, c))
x = c[0]
y = list(c[0])
mayus = y[0].capitalize()
y.pop(0)
for letra in y:
	mayus += letra
print(mayus)


word = input()
answear = word[0].capitalize() + word[1:]
print(answear)


word = input()
if not word.istitle():
	print(word[:1].capitalize() + word[1:])
elif len(word) == 1:
	print(word.capitalize())
else:
	print(word)


strn = input()
print(strn[0].upper(), strn[1:], sep='')


word = input('')
i = 0
k = 0
if word[0] == word[0].upper():
	print(word)
	i += 1
elif word[0] != word[0].upper():
	word[0].upper()
	print(word[0].upper() + word[1:len(word)])
	k += 1


s = input()
n = len(s)
a = []
for i in range(n):
	a.append(s[i])
a[0] = a[0].upper()
s1 = ''
for i in range(n):
	s1 += a[i]
print(s1)


def function():
	str = list(input())
	str[0] = str[0].capitalize()
	print(''.join(str))
function()


def cap():
	word = input()
	if word[0].islower():
		result = chr(ord(word[0]) - 32) + word[1:]
	else:
		result = chr(ord(word[0])) + word[1:]
	return result
print(cap())


import math
import os
import random
import re
import sys
m = input()
s = ''.join(m[0])
s = s.upper()
t = ''
t = s + m[1:]
print(t)


a = input()
lst = [word[0].upper() + word[1:] for word in a.split()]
print(''.join(lst))


s = input()
l = list(s)
x = l[0].upper()
del l[0]
l.insert(0, x)
print(''.join(l))


def capitalisation(myStr):
	if len(myStr) <= 1:
		print(myStr.upper())
		return
	capitalise = list(myStr)
	to_capital = str(capitalise[0].upper())
	print(to_capital + ''.join(capitalise[1:]))
value = str(input())
capitalisation(value)


cadena = input()
longi = len(cadena)
cara = cadena[0]
cara = cara.upper()
cadena1 = '' + cara
cadena1 = cadena1 + cadena[1:longi]
print(cadena1)


n = input()
if ord(n[0]) > 95:
	n = chr(ord(n[0]) - 32) + n[1:]
print(n)


line = input()
print(line[0].capitalize() + line[1:])


inits = str(input())
fins = inits[0].upper() + inits[1:]
print(fins)


st = input()
if ord(st[0]) >= 97 and ord(st[0]) <= 122:
	print(chr(ord(st[0]) - 32) + st[1:])
else:
	print(st)


word = str(input())
l = list(word)
res = ''
l[0] = l[0].upper()
for i in range(len(l)):
	res += l[i]
print(res)


a = input()
t = list(a)
if ord(t[0]) >= 97:
	t[0] = chr(ord(t[0]) - 32)
l = ''.join(t)
print(l)


print(''.join([a.upper() if e == 0 else a for (e, a) in enumerate(input())]))


string = input()
new_string = string[0].capitalize() + string[1:]
print(new_string)


n = input()
s = n[0].replace(n[0].lower(), n[0].upper())
d = f'{s}{n[1:]}'
print(d)


c = input()
if len(c) > 1:
	print(c[0].capitalize() + c[1:-1] + c[-1])
else:
	print(c[0].capitalize())


stri = list(input())
if stri[0].islower:
	stri[0] = stri[0].upper()
stri = ''.join(stri)
print(stri)


s = input()
ohno = list(s)
ohno[0] = ohno[0].title()
s = ''.join(ohno)
print(s)


string = str(input())
a = []
if string[0].islower():
	b = string[0].upper()
	a.insert(0, b)
	string = string[1:]
	for char in string:
		a.append(char)
	for ch in a:
		print(ch, end='')
else:
	print(string)


n = input()
nr = n[1:]
n1 = n[0]
n2 = n1.capitalize()
print(n2 + nr)


word = input()
letters = []
for i in word:
	letters.append(i)
if letters[0] == letters[0].lower():
	letters[0] = letters[0].upper()
	res = ''.join(letters)
	print(res)
else:
	res = ''.join(letters)
	print(res)


import sys
word = input()
if word[0].islower():
	print('{}{}'.format(word[0].upper(), word[1:]))
	sys.exit()
else:
	print(word)
	sys.exit()


dt = input()
print(dt[0].upper() + ''.join(dt[1:]))


text = input().strip()
print(text[0].upper() + text[1:])


s = input().rstrip()
x = list(s)
for i in range(0, len(x)):
	if i == 0:
		t = x[i].upper()
		print(t, end='')
	else:
		print(x[i], end='')


x = input()
r = []
l = ''
a = 'abcdefghijklmnopqrstuvwxyz'
b = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
for i in range(len(x)):
	r.append(x[i])
for j in range(len(a)):
	if r[0] == a[j]:
		r[0] = b[j]
for m in range(len(r)):
	l += r[m]
print(l)


s = input()
if ord(s[0]) >= 65 and ord(s[0]) <= 90:
	print(s)
else:
	s1 = s[0].upper()
	print(s1 + s[1:])


while True:
	word = input('')
	if word[0].isupper():
		print(word)
		break
	elif word[0].islower():
		print(word[0].upper() + word[1:])
		break
	else:
		continue


n = input()
k = list(n)
if ord(k[0]) < 97:
	print(n)
else:
	print(chr(ord(k[0]) - 32), end='')
	for i in range(1, len(k)):
		print(k[i], end='')


st = input()
st1 = st[0]
st2 = st[1:]
st1 = st1.upper()
print(st1 + st2)


in_str = input()
in_str = in_str[0].upper() + in_str[1:]
print(in_str)


3
word = input()
print(word[0].capitalize() + word[1:])


stringnya = input()
a = stringnya[0]
stringnya = stringnya[1:]
a = a.capitalize()
print(a + stringnya)


IN = input()
print(IN[0].upper() + IN[1:])


n = input()
s = len(n)
a = n[0]
b = a.title()
g = n[1:s]
print(b + g)


def Word_Capitalization(s):
	x = []
	x.append(s[0].upper())
	x.append(s[1:])
	x = ''.join(x)
	return x
s = input()
print(Word_Capitalization(s))


a = str(input())
temp = a
d = len(a)
b = ord(a[0])
c = []

def converts(a):
	first = chr(a)
	for i in range(1, d):
		c.append(temp[i])
	e = ''.join(c)
	print(first + e)
if ord(a[0]) >= ord('a') and ord(a[0]) <= ord('z'):
	a = ord(a[0]) - 32
	converts(a)
else:
	print(temp)


def chek(string):
	if string[0].isupper() == True:
		return string
	else:
		new_string = ''
		new_string += string[0].upper()
		new_string += string[1:]
		return new_string
strin = input().strip()
strin = chek(strin)
print(strin)


s = list(input())
if s[0].islower():
	s[0] = s[0].upper()
else:
	pass
print(''.join(s))


def main():
	a = list(input())
	a[0] = a[0].upper()
	out = ''
	for i in a:
		out += i
	print(out)
main()


string = input()
stringg = ''
line = []
for m in string:
	line += m
line[0] = line[0].upper()
stringg = ''.join(line)
print(stringg)


s = input()
if len(s) < 1000:
	if s[0].islower():
		t = s[0].upper()
		str = list(s)
		str[0] = t
		s = ''.join(str)
	print(s)


a = input()
d = ''
for i in range(len(a)):
	if i == 0:
		if ord(a[i]) > 96:
			d = d + chr(ord(a[i]) - 32)
		else:
			d = d + chr(ord(a[i]))
	else:
		d = d + a[i]
print(d)


x = input()
l = len(x)
t = ''
for i in range(l):
	if i == 0:
		p = x[0]
		p = p.upper()
		t = t + p
	else:
		t = t + x[i]
print(t)


s = input()
slist = list(s)
L1 = slist[0]
L1 = L1.capitalize()
nslist = []
nslist.append(L1)
for i in range(1, len(slist)):
	nslist.append(slist[i])
final_str = ''.join(nslist)
print(final_str)


s = input()
v = s[0]
v = v.upper()
print(v + s[1:])


word = input()
word = list(word)
word[0] = word[0].upper()
string = ''
for i in word:
	string = string + i
print(string)


word = list(input())
word[0] = word[0].capitalize()
for i in range(len(word)):
	print(word[i], end='')


word = input()
duplicate = ''
duplicate = word[0].upper() + word[1:]
print(duplicate)


a = input()
if len(a) <= 10 ** 9:
	a = a.replace(a[0], a[0].upper(), 1)
	print(a)


s = input()
if not s[0].isupper():
	s = s[0].upper() + s[1:]
print(s)


a = input()
b = list(range(ord('a'), ord('z') + 1))
c = ''
if ord(a[0]) in b:
	c = a[0].upper()
else:
	c = c + a[0]
i = 1
while i < len(a):
	c = c + a[i]
	i = i + 1
print(c)


fruit = input('')
print(fruit[0].upper() + fruit[1:])


wo = input()
print(wo[0].upper() + wo[1:])


nums = input()
nums = nums[0].upper() + nums[1:]
print(nums)


str0 = input()
print(str0[0].upper() + str0[1:])


s = str(input())
if s[0].islower:
	first = s[0].upper()
	rest = s[1:]
	print(first + rest)
else:
	print(s)


a = input()
if ord(a[0]) in range(ord('a'), ord('z') + 1):
	a = chr(ord(a[0]) - 32) + a[1:]
print(a)


n = input()
r = n[0].upper()
n = r + n[1:]
print(n)


n = input()
a = n[0]
a = a.capitalize()
l = []
s = a + n
for i in range(len(s)):
	l.append(s[i])
l.pop(1)
r = ''.join((str(i) for i in l))
print(r)


text = input()
t = text[0].title()
l = text[1:]
print(t + l)


s = input()
s = list(s[:len(s)])
s[0] = s[0].upper()
print(''.join(s))


def cap(s):
	if s[0] >= 'a' and s[0] <= 'z':
		s = chr(ord(s[0]) + ord('A') - ord('a')) + s[1:]
	return s
print(cap(input()))


a = str(input(''))
l = []
for i in a:
	l.append(i)
k = l[0]
del l[0]
k = k.upper()
print(k, end='')
for i in l:
	print(i, end='')


str = input()
stc = ''
stc += str[0].upper()
for j in range(1, len(str)):
	stc += str[j]
print(stc)


s = input()
first = s[0]
rest = s[1:]
print(s[0].upper() + s[1:])


s = input()
n = len(s)
s1 = ''
if s[0].isupper():
	print(s)
else:
	s1 = s1 + s[0].upper() + s[1:n]
	print(s1)


ui = input()
if ui[0].isupper():
	print(ui)
if not ui[0].isupper():
	print(ui[0].upper() + ui[1:])


word = str(input(''))
l = list(word)
l[0] = l[0].upper()
print(''.join(l))


s = input()
try:
	print(s[:1].upper() + s[1:])
except:
	print(s[:1].upper())


def function():
	word = input()
	first_letter = word[0:1]
	print(word.replace(first_letter, first_letter.upper(), 1))
function()


word = input()
if word[0] == word[0].upper():
	print(word)
else:
	new = word[0].upper()
	print(new + word[1:])


def capitalize(s: str) -> str:
	if len(s) > 0:
		return s[:1].upper() + s[1:]
	else:
		return s
print(capitalize(input()))


def Func(word):
	return word[0].upper() + word[1:]
print(Func(input()))


n = input()
while n == '':
	n = input()
while not (1 <= len(n) <= 10 ** 3 and n.isalpha()):
	n = input()
x = n[0]
print(x.upper() + n[1:])


x = input()
main = []
for a in range(len(x)):
	main.append(x[a])
if ord(main[0]) >= 97:
	main[0] = chr(ord(main[0]) - 32)
final = ''.join(map(str, main))
print(final)


char = str(input(''))
s = char[0].upper()
e = s + char[1:]
print(e)


lisa = input()
print(lisa[0].upper() + lisa[1:])


import os
import sys
word = input()
if len(word) <= 1000:
	if word[0] == word[0].upper():
		print(word)
	else:
		print(word[0].upper() + word[1:])


def s():
	stri = input()
	if ord(stri[0]) > 90:
		stri = chr(ord(stri[0]) - 32) + stri[1:]
	print(stri)
s()


s = input()
s1 = []
for i in s:
	s1.append(i)
s2 = s1[0].capitalize()
s1.pop(0)
s1.insert(0, s2)
s3 = ''
for i in s1:
	s3 += i
print(s3)


a = list(input())
print(a[0].upper() + ''.join((str(i) for i in a[1:])))


x = input('')
word = x[0].capitalize() + x[1:]
print(word)


s = input()
if s[0].isupper() == True:
	print(s)
else:
	print(s[0].upper(), end='')
	print(s[1:])


list1 = [i for i in input()]
list1[0] = list1[0].upper()
u = ''
print(u.join(list1))


n = input()
a = []
b = []
a.append(n[:1])
b.append(n[1:])
a[0] = a[0].capitalize()
d = a + b
print(''.join(d))


x = input()
s = list()
for i in x:
	s.append(i)
s[0] = s[0].upper()
print(''.join(s))


word = input()
list1 = list(word)
list1[0] = list1[0].upper()
final = ''.join(list1)
print(final)


s = input()
s1 = s[0]
s2 = s1.upper()
s3 = s2 + s[1:]
print(s3)


s = input()
p = s[0]
t = p.upper() + s[1:]
print(t)


word = input()
word_list = list(word)
word_list[0] = word_list[0].upper()
for i in range(len(word_list)):
	print(word_list[i], end='')


char = str(input())
if len(char) <= 1000:
	print(char[0].capitalize() + char[1:])


inp = input()
out = inp[0:1].capitalize()
print(out + inp[1:])


word = list(input())
word[0] = word[0].upper()
new = ''.join([str(elem) for elem in word])
print(new)


x = input()
if x[0] >= 'A' and x[0] <= 'Z':
	print(x)
else:
	y = x[0].swapcase() + x[1:]
	print(y)


x = str(input())
if len(x) < 1000:
	z = x[0].upper()
	word = x[1:len(x)]
	print(z + word)


s = input()
for i in range(len(s)):
	if i == 0:
		if 65 <= ord(s[i]) <= 90:
			print(s[i], end='')
		else:
			print(chr(ord(s[i]) - 32), end='')
	else:
		print(s[i], end='')


n = input()
rem = n[1:]
print(n[0].capitalize() + rem)


A = input()
B = A[0].upper()
for i in range(1, len(A)):
	B = B + A[i]
print(B)


try:
	s = input()
	if ord(s[0]) >= 97 and ord(s[0]) <= 122:
		s1 = chr(ord(s[0]) - 32)
		print(s1 + s[1:])
	else:
		print(s)
except Exception as e:
	pass


x = str(input())
ls = list(str(x))
ls[0] = ls[0].capitalize()
td = ''.join(ls)
print(td)


a = list(input())
w = a[0]
a.pop(0)
s = w.upper()
a.insert(0, s)
o = ''.join(a)
print(o)


palavra = input()
if palavra[0].isupper == True:
	print(palavra)
else:
	palavra = list(palavra)
	palavra[0] = palavra[0].upper()
	print(''.join(palavra))


s = input()
l = []
l.append(s[0].upper())
h = ''
for i in s[1:]:
	l.append(i)
for i in l:
	h += i
print(h)


def cap(slovo):
	print(slovo[0].upper() + slovo[1:])
cap(input())


s = input()
d = s[1:]
if s[0].isupper():
	print(s)
else:
	print(s[0].upper() + d)


string = input()
string1 = string.upper()
string = string1[0] + string[1:len(string)]
print(string)


word = [str(i) for i in str(input())]
word[0] = word[0].upper()
print(''.join(word))


m = str(input())
print(m[0].upper() + m[1:])


l = []
l = list(input())
first = l[0]
firt = str.upper(first)
l.remove(first)
ans = firt
for i in l:
	ans += i
print(ans)


s = input()
l = []
for x in s:
	l.append(x)
l[0] = l[0].upper()
o = ''
for x in l:
	o += x
print(o)


def capitalizeWord(word):
	newWord = ''
	for i in range(len(word)):
		if i == 0:
			newWord += word[i].upper()
		else:
			newWord += word[i]
	return newWord
word = input()
print(capitalizeWord(word))


i = 0
n = input('')
list2 = []
for i in range(len(n)):
	if i == 0:
		l = n[i].capitalize()
		list2.append(str(l))
	else:
		list2.append(str(n[i]))
m = ''.join(list2)
print(m)


str = input()
c = str[0]
str = c.capitalize() + str[1:]
print(str)


l = input()
temp = l[0].upper()
print(temp + l[1:])


import string
n = input()
x = string.capwords(n)
r = n[1:len(n)]
print(n[0].capitalize() + r)


n = input()
result = ''
result = n[0].upper()
print(result + n[1:])


a = input('')
if a[0:1].isupper():
	print(a)
elif a[0:1].islower():
	print(a[0:1].upper() + '' + a[1:len(a)])


n = list(input())
b = n[0]
c = b.upper()
n[0] = c
i = 0
l = len(n)
a = ''
while i < l:
	a = a + n[i]
	i = i + 1
print(a)


Word = input()
R = 31323232323
print(Word[0].upper() + Word[1:])


n = input()
first = n[0].upper()
print('%s%s' % (first, n[1:len(n)]))


word = input()
c = word[0].upper()
print(c + word[1:])


i_input_string = input()
final_string = i_input_string[0:1].upper() + i_input_string[1:]
print(final_string)


string = input()
first_letter = string[0]
first_letter = first_letter.upper()
print(first_letter + str(string[1:]))


def setCapital():
	inputStr = input()
	if inputStr[0].isupper():
		return inputStr
	else:
		str1 = inputStr[0].upper() + inputStr[1:]
		return str1
print(setCapital())


MyIn = input()
print(MyIn[0].upper() + MyIn[1:])


(s, buff) = (input(), '')
if ord(s[0]) < 97:
	buff += s[0]
else:
	buff += chr(ord(s[0]) - 32)
for i in range(1, len(s)):
	buff += s[i]
print(buff)


word = input()

def func():
	print(word.replace(word[0], word[0].upper(), 1))
func()


word = input()
firstLetter = word[0].capitalize()
restLetters = word[1:]
wordCapitalized = firstLetter + restLetters
print(wordCapitalized)


a = input()
q = list(a)
q[0] = q[0].capitalize()
a = ''
for i in range(len(q)):
	a += q[i]
print(a)


word_cap = input()
if word_cap[0].isupper() == True:
	print(word_cap)
else:
	print(word_cap[0].upper() + word_cap[1:])


def getLines(num):
	inputLines = []
	for i in range(0, num):
		line = input()
		if line:
			inputLines.append(line)
		else:
			break
	return inputLines

def notZeroPow(num, p):
	return True if num >= 1 and num <= pow(10, p) else False
lines = getLines(1)
result = ''
for (i, e) in enumerate(lines[0]):
	if i == 0:
		result += e.upper()
	else:
		result += e
print(result)


__author__ = 'widoc'
s = input()
s = s[0].upper() + s[1:]
print(s)


name = input()
print(name[0].capitalize() + name[1:])


a = input()
first_letter = a[0].upper()
print(first_letter + a[1:])


n = input()
a = list(n)
a[0] = a[0].upper()
x = ''.join(map(str, a))
print(x)


def main():
	x = input()
	x = x[0].capitalize() + x[1:len(x)]
	print(x)
main()


palavra = input()
palavra2 = palavra[0].lower().capitalize() + palavra[1:]
print(palavra2)


s = input()
result = s[0]
if ord(s[0]) >= 97 and ord(s[0]) <= 122:
	result = chr(ord(s[0]) - 32)
for i in range(1, len(s)):
	result += s[i]
print(result)


def stringCap(s):
	l = len(s)
	s = s[0].upper() + s[1:l]
	return s
string = input()
print(stringCap(string))


inp = input().strip()
print(inp[0].upper() + inp[1:])


mas = input()
a = mas[0]
mas = mas[1:]
a = a.upper()
mas = a + mas
print(mas)


x = input()
l = len(x)
if ord(x[0]) >= 97 and ord(x[0]) <= 122:
	a = 65 - 97 + ord(x[0])
else:
	a = ord(x[0])
print(chr(a), x[1:l], sep='')


x = input()
if x[0].islower():
	print(x[0].upper(), end='')
	pass
else:
	print(x[0], end='')
for i in range(1, len(x)):
	print(x[i], end='')


sb = input()
s = [i for i in sb]
s[0] = s[0].upper()
print(''.join(s))


a = list(input())
v = a[0].upper()
a[0] = v
print(''.join(a))


n = str(input())
if ord(n[0]) >= ord('A') and ord(n[0]) <= ord('Z'):
	print(n)
else:
	print(chr(ord(n[0]) - 32) + n[1:])


line = [str(i) for i in str(input())]
if ord('a') <= ord(line[0]) <= ord('z'):
	line[0] = chr(ord(line[0]) - ord('a') + ord('A'))
print(''.join(line))


n = input()
st = []
n2 = n.upper()
st.append(n2[0])
for i in range(1, len(n)):
	st.append(n[i])
o = ''.join(st)
print(o)


s = input()
t = s[0].upper()
r = t + s[1:]
print(r)


def captilize(str):
	temp = ''
	t = ''
	if str[0].islower():
		t = str[0].upper()
		temp = t + str[1:]
		print(temp)
	else:
		print(str)
str = input()
captilize(str)


sting = input()
capital = sting[0]
integer = ord(capital)
if integer > 96:
	capital = integer - 32
	print(chr(capital) + sting[1:])
else:
	print(sting)


n = input()
n = list(n)
if n[0].islower():
	n[0] = n[0].upper()
print(''.join(n))


a = input()
b = []
b.append(a[0].upper())
b.append(a[1:len(a)])
print(''.join(b))


x = input()
x2 = x[0]
x2 = x2.upper()
x = x2 + x[1:]
print(x)


x = input()
z = ''
c = 0
for i in x:
	if c == 0:
		q = i.upper()
	else:
		q = i
	z = z + q
	c += 1
print(z)


st = input()
if st[0].isupper():
	print(st[0], end='')
else:
	print(st[0].capitalize(), end='')
print(st[1:])


s = input()
s1 = ''
if 96 < ord(s[0]) < 123:
	m = ord(s[0]) - 32
	s1 = s1 + chr(m) + s[1:]
	print(s1)
else:
	print(s)


a = list(input())
a1 = a[0].upper()
a2 = ''.join(a[1:len(a)])
print(a1 + a2)


word = input()
s = ''
if word[0] == word.upper():
	print(word)
else:
	s = word[0].upper()
	print(s + word[1:])


s = input()
l = s[0]
m = s[1:]
k = l.upper()
print(k + m)


def solve():
	s = input()
	s2 = ''
	s2 += s[0].upper()
	for i in range(1, len(s)):
		s2 += s[i]
	print(s2)
solve()


mgtow = input()
print(mgtow[0].upper() + mgtow[1:])


a = str(input())
a = a[0].upper() + a[1:int(len(a))]
print(a)


word = input()
if word[0].islower():
	print('{}{}'.format(word[0].upper(), word[1:]))
else:
	print(word)


n = input()
m = ord(n[0])
if m > 96:
	m = m - 32
	n = n.replace(n[0], chr(m), 1)
	print(n)
else:
	print(n)


s = input()
if ord(s[0]) < 91:
	print(s)
else:
	s = list(s)
	s[0] = chr(ord(s[0]) - 32)
	print(''.join(s))


a = input()
b = a[0].upper()
for k in range(1, len(a)):
	b = b + a[k]
print(b)


stringa = input()
assert len(stringa) < 10 ** 3
newstringa = stringa[0].upper()
newstringa = newstringa + stringa[1:]
print(newstringa)


a = input()

def caps(a):
	b = a[0].upper()
	c = b + a[1:]
	return c
print(caps(a))


Capitol = input()
x = len(Capitol)
print(Capitol[0].capitalize(), end='')
for i in range(1, x):
	print(Capitol[i], end='')


word = input()
big_letter = word[0].upper()
replaced_row = word.replace(word[0], big_letter, 1)
print(replaced_row)


string = str(input())
first = string[0].upper()
print(first + string[1:len(string)])


while True:
	n = input('')
	if len(n) >= 1 and len(n) <= 1000:
		break
first = n[0].upper()
print(first + n[1:])


L = input()
A = []
E = str(L[0]).upper()
A.append(E)
for k in range(1, len(L)):
	A.append(L[k])
A = ''.join(A)
print(A)


def capt(a):
	a = a[0].upper() + a[1:]
	return a
print(capt(input()))


v = input()
j = ''
if v[0].islower() == True:
	j = v[0].upper()
	v = j + v[1:]
print(v)


T = input()
fs = T[0].upper()
ls = T[1:]
mod = fs + ls
print(mod)


word = list(input())
first = str(word[0]).upper()
word.pop(0)
print(first + ''.join(word))


a = input()
answer = a[0].upper() + a[1:]
print(answer)


d = input()
x = ''
y = ''
z = ''
y = d[1:2000]
x = d[0].capitalize()
print(x + y)


s = input()
sts = s[0].upper()
sts += s[1:]
print(sts)


strInput = input()
print(strInput[0].upper() + strInput[1:])


inp = str(input())
first = inp[0]
if first.islower() == True:
	print(first.upper() + inp[1:])
else:
	print(inp)


import sys
str = input()
print(str[0].upper() + str[1:])


a = list(input())
b = []
if 'A' <= a[0] <= 'Z':
	for i in a:
		print(i, end='')
else:
	new = a[0].upper()
	b.append(new)
	for i in range(1, len(a)):
		b.append(a[i])
	for i in b:
		print(i, end='')


word = input()
list_word = list(word)
list_word[0] = list_word[0].upper()
ready = ''.join(list_word)
print(ready)


ch = input()
print(ch[0].capitalize() + ch[1:])


n = input()
if n[0].isupper():
	print(n)
else:
	l = len(n)
	ch = chr(ord(n[0]) - 32)
	for i in range(1, l):
		ch += n[i]
	print(ch)


import sys
string1 = input()
print(string1[0].upper() + string1[1:])


TextInput = input()
print(f'{TextInput[0].upper()}{TextInput[1:]}')


word = input()
letter = word[0]
print(letter.upper(), end='')
for i in range(1, len(word)):
	print(word[i], end='')


n = input()
x = n[0]
if x >= 'a' and x <= 'z':
	x = chr(ord(x) - 32)
	print(x, end='')
	print(n[1:])
else:
	print(n)


string = input()
if len(string) <= 1000:
	string = list(string)
	print(string[0].title(), end='')
	for i in range(1, len(string)):
		print(string[i], end='')


s = input()
ss = s[0].title() + s[1:]
print(ss)


w1 = ''
l1 = list(input())
l1[0] = l1[0].capitalize()
for a in range(len(l1)):
	w1 += l1[a]
print(w1)


s = input()
s1 = s.upper()
l1 = list(s)
if s[0] != s1[0]:
	l1[0] = s1[0]
s1 = ''.join(l1)
print(s1)


zimu = input()
capital = list(zimu)
print(capital[0].upper(), end='')
del capital[0]
for i in capital:
	print(i, end='')


def solve(word):
	x = word[0].upper()
	return x + word[1:]
x = str(input())
print(solve(x))


n = input()
S = n[0]
n = n[1:]
S = S.upper()
print(S + n)


lst = []
lst = input()
if lst[0] <= 'z' and lst[0] >= 'a':
	l = chr(ord(lst[0]) - 32)
	print(l + lst[1:len(lst)])
else:
	print(lst)


a = [a for a in input()]
b = a[0]
b = b.upper()
a[0] = b
print(''.join(a))


s = [str(i) for i in input()]
s[0] = s[0].upper()
print(''.join((str(i) for i in s)))


word = input()
first = word[0].title()
rest = word[1:len(word)]
word = first + rest
print(word)


word = input()
if word[0] > 'Z':
	print(chr(ord(word[0]) - 32) + word[1:len(word)])
else:
	print(word)


def string(str):
	s = ''
	for i in str:
		s = i.upper()
		break
	print(s, end='')
	print(str[1:], end='')
string(input())


text = input()
big = text[:1].upper()
print(big + text[1:])


word = input()
nword = ''
if len(word) >= 1:
	nword = word[0].upper()
if len(word) > 1:
	nword += word[1:]
print(nword)


word = input()
word1 = word[0]
word1 = word1.upper()
i = 1
while i < len(word):
	word1 = word1 + word[i]
	i = i + 1
print(word1)


s = input()
if len(s) > 1:
	s1 = s[0].upper()
	print(s1 + s[1:])
else:
	print(s.upper())


word = input()
if word[0].islower():
	a = list(word)
	a[0] = a[0].upper()
	print(''.join((i for i in a)))
else:
	print(word)


a = input()
first_el = a[0]
new_first_el = first_el.upper()
a = a[1:]
answer = new_first_el + a
print(answer)


t = input()
if t[0].islower():
	a = t[0]
	t = t.replace(t[0], '', 1)
	t = a.upper() + t
print(t)


s = input()
t1 = s[0].upper()
t2 = s[1:]
total = t1 + t2
print(total)


import sys
s = ''
for line in sys.stdin:
	i = []
	for x in line:
		i.append(x)
		i[0] = i[0].upper()
	print(s.join(i))


string = input()
a = ord(string[0])
lr = list(string)
if 97 <= a <= 122:
	a = a - 32
	lr[0] = chr(a)
	print(''.join(lr))
else:
	print(''.join(lr))


a = list(input())
if ord(a[0]) in range(97, 123):
	a[0] = chr(ord(a[0]) - 32)
print(''.join(a))


import sys
import math
import array
s = input()
a = ''
a += s[0]
a = a.upper()
print(a, s[1:len(s)], sep='')


inp = str(input())
if len(inp) > 0 and inp[0].islower():
	print(inp[0].upper() + inp[1:])
else:
	print(inp)


string = input()
newstr = string[0].upper() + string[1:]
print(newstr)


a = list(input())
a[0] = a[0].upper()
a = str(a)
a = a.replace("'", '')
a = a.replace(' ', '')
a = a.replace(',', '')
a = a.replace('[', '')
a = a.replace(']', '')
print(a)


s = input()
print(s[0].isupper() and s or s[0].upper() + s[1:])


def capitalize(word):
	if word[0].islower():
		return chr(ord(word[0]) - 32) + word[1:]
	return word
print(capitalize(input()))


a = input('')
a1 = a[0]
if a1.isupper():
	print(a)
	pass
else:
	a1 = a1.upper()
	koks = []
	koks.append(a1)
	koks.append(a[1:len(a)])
	koks = ''.join(koks)
	print(koks)


import string
import re
alphabet2 = string.ascii_uppercase
alphabet1 = string.ascii_lowercase
word0 = input()
word = re.findall('\\w', word0)
if word[0] in alphabet2:
	print(word0)
else:
	word[0] = alphabet2[alphabet1.index(word[0])]
	print(''.join(word))


word = input()
capitalized = word[0].upper() + word[1:]
print(capitalized)


x = list(input().strip())
x[0] = x[0].upper()
a_Str = ''
for item in x:
	a_Str += item
print(a_Str)


n = input()
n1 = n.capitalize()
n = n1[0] + n[1:]
print(n)


s = input()
l = len(s)
if s.istitle() is True:
	print(s)
else:
	a = s[0]
	b = a.capitalize()
	print(b + s[1:l])


shit = list(input())
if len(shit) <= 10 ** 3:
	fuck = shit[0]
	fucking = fuck.upper()
	shit[0] = fucking
	bullshit = ''.join(shit)
print(bullshit)


import sys
inf = sys.stdin
word = str(inf.readline()).strip()
print(word[:1].capitalize() + word[1:])


from sys import stdin
w = stdin.readline().rstrip()
print(w[0].upper() + w[1:])


a = input()
z = ''
for i in range(len(a)):
	if i == 0:
		i = a[i].capitalize()
		z = z + i
	else:
		z = z + a[i]
print(z)


s = input()
ch = 'abcdefghijklmnopqrstuvwxyz'
if s[0] in ch:
	print(s[0].upper() + s[1:])
else:
	print(s)


n = input()
if len(n) < 1000:
	c = n[0].upper()
	d = n[1:len(n)]
	print(c + d)


x = input()
x = [z for z in x]
if x[0].isupper() == True:
	pass
else:
	x[0] = x[0].upper()
x = ''.join(x)
print(x)


z = str(input())
k = z[0]
k.upper()
print(f'{k.upper()}{z[1:]}')


text = input()
first = text[0].upper()
print(first + text[1:])


s = input()
n = len(s)
print(s[0].upper(), end='')
print(s[1:])


s = input()
x = list(s)
x[0] = x[0].upper()
final = ''
for ele in x:
	final += ele
print(final)


def capitalize(string: str) -> str:
	if string == '':
		return string
	string = list(string)
	if ord(string[0]) >= 97 and ord(string[0]) <= 122:
		string[0] = string[0].upper()
	return ''.join(string)

def main():
	string = input().strip()
	print(capitalize(string))
main()


inp = str(input())
cap = inp[0]
rest = inp[1:]
print(cap.capitalize() + rest)


s = input()
l = [x for x in s]
l[0] = l[0].upper()
for i in l:
	print(i, end='')


s = input()
if not s[0].isupper():
	s_lst = list(s)
	s_lst[0] = s_lst[0].upper()
	s = ''.join(s_lst)
print(s)


n = str(input())
N = ''
for i in range(len(n)):
	ascii = ord(n[i])
	if i == 0:
		if ascii >= ord('a') and ascii <= ord('z'):
			N += chr(ord(n[i]) - 32)
		else:
			N += n[i]
	else:
		N += n[i]
print(N)


a = input()
b = a[1:]
c = a[0].upper()
if len(a) <= 10 ** 3:
	if c == a[0]:
		print(a)
	else:
		print(c + b)


string = input()
capital = string[0].upper()
print(capital + string[1:])


x = str(input())
a = x[0]
print(a.capitalize() + x[1:])


word = input()
final_str = ''
temp = word[0:1].capitalize()
temp.capitalize()
final_str = temp + word[1:]
print(final_str)


s = str(input())
c = str(s[0])
if c.isupper() == True:
	print(s)
elif c.islower() == True:
	l = c.upper()
	new = s.replace(s[0], l, 1)
	print(new)


from sys import stdin

def main():
	st = stdin.readline().rstrip()
	print(st[0].upper() + st[1:])
main()


n = input()
a = n[0]
b = a.upper()
l = len(n)
s = b + n[slice(1, l, 1)]
print(s)


string = input()
string = list(string)
string1 = string[0].upper()
print(string1 + ''.join(string[1:]))


a = []
x = input('')
p = len(x)
a.append(x[0].upper())
for i in range(1, p):
	a.append(x[i])
print(''.join(a))


n = input()[:1000]
a = n[:1].upper() + n[1:]
print(a)


s = input()
x = ''.join(s[0].upper())
print(x + s[1:])


a = input()
b = a[0]
if b == b.upper():
	print(a)
else:
	print(b.upper(), end='')
	print(a[1:])


word = str(input())
chars = list(word)
for i in range(len(word)):
	if i is 0:
		chars[i] = chars[i].upper()
	else:
		chars[i] = chars[i]
newWord = ''.join(chars)
print(newWord)


import os
word = input().rstrip()
s = ''
i = 1
for ch in word:
	if i == 1:
		s += ch.upper()
	else:
		s += ch
	i += 1
print(s)


ipt = input()
ipt = ipt[0].upper() + ipt[1:]
print(ipt)


s = input()
news = '%s%s' % (s[0].upper(), s[1:])
print(news)


s = input()
s = list(s)
s[0] = s[0].upper()
p = ''.join(s)
print(p)


s = input()
ans = ''
for i in range(len(s)):
	if i == 0:
		if s[i].islower:
			ans += s[i].upper()
	else:
		ans += s[i]
print(ans)


l = str(input())
k = 0
for i in l:
	if k == 0:
		print(i.upper(), end='')
	else:
		print(i, end='')
	k += 1
print()


n = input()
for i in range(len(n)):
	if i == 0:
		print('%c' % n[i].upper(), end='')
	else:
		print('%c' % n[i], end='')


word = input()
Str1 = word[0]
output = Str1.capitalize()
Str2 = word[1:]
print(output + Str2)


s = str(input())

def ufl(s):
	return s[0].upper() + s[1:]
print(ufl(s))


s = input()
m = ''
a = s[0:1]
b = a.upper()
m = b + s[1:len(s)]
print(m)


s = input()
s1 = s[1:len(s)]
s2 = s[0].upper()
s = s2 + s1
print(s)


word = str(input())
if len(word) < 1000:
	print(word[0].capitalize() + word[1:])


n = input()
a = 'abcdefghijklmnopqrstuvwxyz'
a = a.upper()
if n[0] not in a:
	c = n[0]
	c = c.upper()
	n = n[1:]
	n = c + n
print(n)


def capitalization(inpu):
	m = inpu[0].upper()
	return m + inpu[1:len(inpu)]
u = input()
print(capitalization(u))


word = list(input())
while True:
	if ord(word[0]) > 95:
		code = ord(word[0]) - 32
		word[0] = chr(code)
		break
	else:
		break
output = ''.join(word)
print(output)


__author__ = 'Utena'
s = input()
print(s.replace(s[0], s[0].upper(), 1))


str1 = input()
STR1 = str1[0].upper() + str1[1:]
print(STR1)


wrord = str(input())
print(wrord.replace(wrord[0], wrord[0].upper(), 1))


astr = input()
newstr = astr[0].upper() + astr[1:]
print(newstr)


word = list(input())
if word[0] != word[0].upper():
	word[0] = word[0].upper()
	print(''.join(word))
elif word[0] == word[0].upper():
	print(''.join(word))


str = input()
i = 0
for char in str:
	if i == 0:
		print(char.capitalize(), end='')
	else:
		print(char, end='')
	i = i + 1


word = input()
w = word[0].capitalize() + word[1:]
print(w)


a = input('')
if a[0] == a[0].upper():
	print(a)
else:
	b = str(a[0])
	print(a.replace(a[0], b.upper(), 1))


import sys
line = input()
line = list(line)
line[0] = line[0].upper()
print(''.join(line))


s = input()
l = []
for i in range(len(s)):
	l.append(s[i])
if ord(l[0]) >= 97:
	l[0] = chr(ord(l[0]) - 32)
for i in l:
	print(i, end='')


s = input()
ele = s[0].upper()
print(s.replace(s[0], ele, 1))


word = input()

def capitalise(word):
	word = list(word)
	if word[0].islower:
		word[0] = word[0].upper()
	print(''.join(word))
capitalise(word)


__author__ = 'runekri3'
word = input()
if word[0].islower():
	word = word[0].upper() + word[1:]
print(word)


def capital(s):
	s = list(s)
	if s[0].islower():
		s[0] = s[0].upper()
	return ''.join(s)
s = input()
print(capital(s))


s = input()
c = s[0]
print(s) if s[0] <= 'Z' else print(s[0].upper(), end='')
if c > 'Z':
	for x in range(1, len(s)):
		print(s[x], end='')


a = input()
l = []
for x in a:
	l.append(x)
l[0] = l[0].upper()
print(''.join(l))


from sys import stdin
word = str(stdin.readline().strip())
print(str(word[0].upper()) + str(word[1:]))


cap_str = str(input())
mod_str = ''
if ord(cap_str[0]) >= 97 and ord(cap_str[0]) <= 122:
	mod_str += chr(ord(cap_str[0]) - 32)
	mod_str += cap_str[1:]
if len(mod_str) == 0:
	print(cap_str)
else:
	print(mod_str)


word = input()
(first, others) = (word[0], word[1:])
first = first.upper()
print(f'{first}{others}')


s = input()
cap = s[0]
rest = s[1:]
print(cap.capitalize() + rest)


x = input()
cap = x[0].upper()
final = cap + x[1:]
print(final)


s = str(input())
flag = 0
rets = ''
for ch in s:
	if flag != 1:
		rets = rets + ch.upper()
		flag = 1
		continue
	rets = rets + ch
print(rets)


word = input()
str1 = word[0]
str2 = word[1:]
word = str1.capitalize() + str2
print(word)


in1 = input()
in1 = in1[0].upper() + in1[1:]
print(in1)


def main():
	word = input()
	capital = word[0]
	max = len(word)
	lst = [capital.upper()]
	for letter in word[1:max]:
		lst.append(letter)
	lst = ''.join(lst)
	print(lst)
main()


word = input()
firstletter = word[0]
print(firstletter.capitalize() + word[1:])


y = input()
x = list(y)
str1 = x[0]
str2 = ''
for i in range(1, len(x)):
	str2 += x[i]
print(str1.upper() + str2)


st = str(input())
stfirst = st[0:1]
strem = st[1:]
stfirst = stfirst.upper()
print(stfirst + strem)


ass = input()
print(ass[0].upper() + ass[1:])


s = input()
word = []
i = 0
while i < len(s):
	word.append(s[i])
	i = i + 1
r = word[0].upper()
j = 1
while j < len(s):
	r = r + word[j]
	j = j + 1
print(r)


word = input()
if word[0] >= 'a' and word[0] <= 'z':
	print(word[0].title() + word[1:])
else:
	print(word)


lol = input()
print(lol[0].upper() + lol[1:])


n = input()
if len(n) <= pow(10, 3):
	if n[0].isupper():
		print(n)
	else:
		n = n[0].upper() + n[1:]
		print(n)


x = input()
z = []
for i in x:
	z.append(i)
z[0] = z[0].capitalize()
for i in z:
	print(i, end='')


s = input()
a = ''
n = len(s)
k = s[0]
if ord(s[0]) <= 122 and ord(s[0]) >= 97:
	k = chr(ord(s[0]) - 32)
a = k + s[1:n]
print(a)


word = input('')
word = list(word)
f = word[0]
word.remove(word[0])
out = f.upper() + ''.join(word)
print(out)


a = input()
a1 = ''
a2 = ''
c = []
d = ''
if 1 <= len(a) <= 10 * 10 * 10:
	a1 = a1 + a[0:1]
	a1 = a1.upper()
	for char in a:
		c.append(char)
	c.pop(0)
	for i in range(0, len(c)):
		d = d + c[i]
	d = a1 + d
	print(d)
else:
	print('wrong input')


word = input()
output = str.capitalize(word[0]) + word[1:]
print(output)


A = input()
LL = str(A[0])
G = int(len(A))
n = A[0]
if A[0] == LL.upper():
	print(A)
if n != LL.upper():
	n.upper()
	print(n.upper() + A[1:G])


w = input()
(s, rest) = (w[0], w[1:])
s = s.upper()
print(s + rest)


word = input()
if word[0].isupper():
	print(word)
if word[0].islower():
	print(word[0].capitalize() + word[1:])


import io
import os
s = input()
print(s[0].capitalize() + s[1:])


s = input()
if s[0].isupper():
	print(s)
else:
	p = s[0].upper()
	print(p + s[1:])


n = input()
first = n[0].upper()
remaining = n[1:]
print(f'{first}{remaining}')


string = input()
string2 = string.upper()
string1 = string2[:1] + string[1:]
print(string1)


s = input().strip()
if s[0].islower():
	s = s[0].upper() + s[1:]
print(s)


s = input()
d = s[0].capitalize() + s[1:]
print(d)


x = input()
res = ''
r = len(x)
res = x[0].upper() + x[1:r]
print(res)


l = input()
x = l[0]
y = l[1:len(l)]
n = x.upper()
seq = (n, y)
print(''.join(seq))


s = input()
first = s[0]
print(f'{first.upper()}{s[1:]}')


cs = input()
print(cs[0].upper() + cs[1:])


a = input()
s = []
q = str()
for i in range(len(a)):
	s.append(a[i])
d = s[0].upper()
del s[0]
for j in range(len(s)):
	q += str(s[j])
print(d + q)


def test():
	s = str(input())
	s[0].upper()
	print(s[0].upper() + s[1:])
test()


string = input()
string1 = string[0]
string1 = string1.upper()
ar = []
for i in range(len(string)):
	ar.append(string[i])
ar.remove(ar[0])
ans = ''
for i in range(len(ar)):
	ans = ans + ar[i]
ans = string1 + ans
print(ans)


w = input()
w = list(w)
if w[0].islower():
	w[0] = w[0].upper()
print(''.join(w))


def capitalise(word):
	return word[0].upper() + word[1:]
word = input().strip()
res = capitalise(word)
print(res)


def capitalization(word):
	let = word[0]
	let = let.upper()
	res = ''
	res += let
	for i in range(1, len(word)):
		res += word[i]
	print(res)
inp = str(input())
capitalization(inp)


string = input()
if string != '':
	print(string[0].upper() + string[1:])


word = input()
lst = word[0].upper() + word[1:]
s = ''.join(lst)
print(s)


word = input()
res = ''
res += word[0].upper()
for c in word[1:]:
	res += c
print(res)


n = input()
mai = n[0].upper() + n[1:]
print(mai)


y = input()
b = y[0].upper() + y[1:]
print(b)


str = input()
p = str[0].upper()
l = len(str)
print(p + str[1:l])


def Capitalization(a):
	first = a.upper()[0]
	remain = ''
	for i in range(1, len(a)):
		remain += a[i]
	return first + remain
a = input()
print(Capitalization(a))


x = input()
n = len(x)
if n < 1000:
	y = x[0].upper()
	z = x[1:]
	w = y + z
	print(w)


g = input()
l = []
for i in g:
	l += i
l[0] = l[0].upper()
s = ''
for i in l:
	s += i
print(s)


t = input()
s = []
for i in str(t):
	s.append(i)
s[0] = s[0].upper()
print(''.join(s))


vards = input()
if vards[0] > 'Z':
	print(chr(ord(vards[0]) - 32) + vards[1:])
else:
	print(vards)


s = input()
if len(s) == 1:
	if ord(s[0]) > ord('Z'):
		print(chr(ord(s[0]) - 32))
	else:
		print(s)
elif ord(s[0]) > ord('Z'):
	out = chr(ord(s[0]) - 32) + s[1:]
	print(out)
else:
	print(s)


import sys
s = sys.stdin.read()
print(s[0].upper() + s[1:])


import sys
word = input()
if word[0] >= 'a' and word[0] <= 'z':
	word = word[0].upper() + word[1:]
print(word)


initial_str = input()
final_str = ''
if 97 <= ord(initial_str[0]):
	final_str = chr(ord(initial_str[0]) - 32) + initial_str[1:]
else:
	final_str = initial_str
print(final_str)


Z = input()
print(Z[0].upper() + Z[1:])


word = str(input())
sol = word[0].upper() + word[1:]
print(sol)


def solve():
	chars = str(input())
	new_chars = []
	for letter in chars:
		new_chars.append(letter)
	d = new_chars.pop(0)
	new_chars.insert(0, d.upper())
	return ''.join(new_chars)
print(solve())


str1 = input()
temp = str1[:1]
temp = temp.capitalize()
str1 = temp + str1[1:]
print(str1)


def capitalize(sentence):
	sentence = sentence.split()
	for i in range(len(sentence)):
		sentence[i] = sentence[i][0].upper() + sentence[i][1:]
	return sentence
print(*capitalize(input()))


def Capital(s):
	t = s[0]
	t = t.upper()
	x = []
	for i in range(1, len(s), 1):
		x.append(s[i])
	x = ''.join(map(str, x))
	s = ''.join(t + x)
	return s
s = input()
print(Capital(s))


def main():
	s = input()
	ans = s[0].upper()
	ans += ''.join(s[1:])
	print(ans)
main()


a = input()
print(a[0].upper(), end='')
for i in a[1:]:
	print(i, end='')


word = input()
if len(word) == 1:
	print(word.upper())
elif len(word) == 2:
	print(word[0].upper() + word[-1])
else:
	print(word[0].upper() + word[1:-1] + word[-1])


import math
import os
import random
import re
import sys
strs = input()
if len(strs) > 0 and strs[0].islower():
	print(strs[0].upper() + strs[1:])
else:
	print(strs)


w = input()
c = ''
y = ord(w[0])
if y >= 97:
	y = y - 32
print(chr(y), end='')
for i in range(1, len(w)):
	print(w[i], end='')


string = input()
str1 = string[0]
str1 = str1.capitalize()
str2 = str1 + string[1:]
print(str2)


from sys import stdin

def main():
	cad = list(stdin.readline().strip())
	cad[0] = cad[0].upper()
	cad = ''.join(cad)
	print(cad)
main()


st = input()
li = list(st)
p = ord(li[0])
if p > 90:
	li[0] = chr(p - 32)
qs = ''.join(li)
print(qs)


import sys
s = list(input())
s[0] = s[0].capitalize()
print(''.join(s))


s = input()
lst = list(s)
a = str(lst[0])
lst.pop(0)
w = ''
b = w.join((i for i in lst))
print(a.upper() + b)


def capitalization(string):
	if len(string) < 10 ** 3:
		return string[0].upper() + string[1:len(string)]
	return
string = input()
print(capitalization(string))


i = str(input())
j = i.upper()
j = j[:1] + i[1:]
print(j)


a = str(input())
b = []
f = ' '.join(a)
g = f.split()
t = g[0].title()
del g[0]
g.reverse()
g.append(t)
g.reverse()
w = ''.join(g)
print(w)


s = input()
f = s[0]
r = s[1:]
if f.islower():
	q = f.upper()
	new = q + r
	print(new)
else:
	print(s)


inp = input()
lis = list((i for i in str(inp)))
print(lis[0].upper(), end='')
for i in range(1, len(lis), 1):
	print(lis[i], end='')


b = input()
c = b[0:1]
c = c.upper()
a = len(b)
if a == 1:
	print(b.upper())
else:
	b = b[1:]
	ol = list(b)
	ol.pop(0)
	print(c, end='')
	print(b)


w = input()
w1 = w[0].upper()
r = w1 + w[1:]
print(r)


from string import ascii_lowercase
letter = list(ascii_lowercase)
user_input = list(input())

def prt(input_Str):
	answer = ''
	for prt in input_Str:
		answer += prt
	return answer
if user_input[0] not in letter:
	print(prt(user_input))
else:
	user_input[0] = user_input[0].upper()
	print(prt(user_input))


n = str(input(''))
print(n[0].capitalize() + n[1:])


word = input()
word = list(word)
i = 0
if ord(word[i]) >= 96 and ord(word[i]) <= 122:
	z = ord(word[i]) - 32
	word[i] = chr(z)
print(''.join(word))


string = input()
left = string[1:]
print(string[0].upper() + left)


data = input()
returnstring = ''
for i in range(len(data)):
	if i == 0:
		returnstring = returnstring + data[i].upper()
	else:
		returnstring = returnstring + data[i]
print(returnstring)


ip = input()
a = ip[0]
b = ip[1:len(ip)]
c = a.upper() + b
print(c)


x = input('')
s = 0
y = len(x)
lst = []
if y <= 10 ** 3:
	for i in range(y):
		if i is 0:
			s = x[i].upper()
		else:
			s += x[i]
print(s)


s = input()
ns = '%s%s' % (s[0].upper(), s[1:])
print(ns)


s = input()
if s[0] > 'Z':
	print(chr(ord(s[0]) - 32), s[1:], sep='')
else:
	print(s)


stroka = list(input())
i = stroka[0]
if ord(i) >= 97 and ord(i) <= 122:
	j = chr(ord(i) - 32)
	stroka.pop(0)
	stroka.insert(0, j)
print(*stroka, sep='')


a = list(input())
c = str.upper(a[0])
s = len(a)
for i in range(s - 1):
	c += a[i + 1]
print(c)


input_value = input()
first_value = ord(input_value[0])
if first_value > 90:
	print(chr(first_value - 32) + input_value[1:])
else:
	print(input_value)


s = [char for char in input()]
s[0] = s[0].upper()
for x in s:
	print(x, end='')
print()


def user(name):
	newName = ''
	count = 0
	for ch in name:
		if count == 0:
			newName += ch.upper()
		else:
			newName += ch
		count += 1
	print(newName)
user(input())


import string
word = str(input())
if word[0].islower():
	print(word[0].upper() + word[1:])
else:
	print(word)


_word = input()
new = ''
if _word[0].islower:
	new = _word[0].upper()
if len(_word) > 1:
	for i in range(1, len(_word)):
		new = new + _word[i]
print(new)


f1 = input()
print(f1[0].upper() + f1[1:])


s = list(input())
aa = s[0]
aa = aa.upper()
s.pop(0)
print(aa + ''.join(s))


s = [i for i in input()]
if s[0].islower():
	s[0] = s[0].upper()
for i in s:
	print(i, end='')


inn = input()
print(inn[0].upper(), inn[1:], sep='')


word = str(input())
list = []
for i in range(len(word)):
	B = word[i]
	list.append(B)
D = list.pop(0)
E = D.upper()
list.insert(0, E)
capitalized_word = ''
for i in range(0, len(list)):
	C = list.pop(0)
	capitalized_word = capitalized_word + C
print(capitalized_word)


singers = input()
c = []
t = [singers[0].capitalize()]
for i in range(1, len(singers)):
	b = singers[i]
	c.append(b)
print(*t, *c, sep='')


sp = []
n = str(input())
a = n[0]
b = a.upper()
st = str(n[1:])
st2 = b + st
print(st2)


import sys
for line in sys.stdin:
	cap_line = line[0].upper() + line.strip()[1:]
	print(cap_line)
	break


import sys
import math as mt
t = 1
for __ in range(t):
	s = input()
	if ord(s[0]) >= ord('a'):
		print(chr(ord(s[0]) - 32) + s[1:])
	else:
		print(s)


s = str(input())
if ord(s[0]) > 95:
	a = ord(s[0]) - 32
	b = chr(a)
	print(b + s[1:])
else:
	print(s)


str = input()
strnew = ''
c = str[0]
cnew = c.upper()
strnew += cnew
lol = len(str)
for i in range(1, lol):
	strnew += str[i]
print(strnew)


b = input()
aux = ''
for item in range(len(b)):
	if item == 0:
		aux += b[0].upper()
	else:
		aux += b[item]
print(aux)


s = input()
i = 1
temp = s[0].upper()
while i < len(s):
	temp += s[i]
	i += 1
print(temp)


z = str(input())
print(z.replace(z[0], z[0].upper(), 1))


str = input()
first = ''
first += str[0]
first = first.upper()
for ch in range(1, len(str)):
	first += str[ch]
print(first)


n = list(input())
if len(n) != 0:
	n[0] = n[0].upper()
print(''.join(n))


def cap(m):
	if ord(m[0]) > 90:
		if len(m) == 1:
			return chr(ord(m[0]) - 32)
		return chr(ord(m[0]) - 32) + m[1:]
	return m
m = input()
print(cap(m))


s = input()
L = list(s)
L[0] = L[0].upper()
s = ''.join(L)
print(s)


def split(word):
	return [char for char in word]
word = split(input())
print(word[0].upper(), end='')
print(''.join(word[1:]))


s = input()
p = []
p.append(s[0].upper())
for j in range(1, len(s)):
	p.append(s[j])
q = ''.join(p)
print(q)


l = [i for i in input()]
l[0] = l[0].upper()
l = ''.join(map(str, l))
print(l)


def solve(s):
	s = list(s)
	s[0] = s[0].upper()
	return ''.join(s)
s = input()
print(solve(s))


s = input()
sz = len(s)
for i in range(0, sz):
	if i == 0:
		if s[i] >= 'a' and s[i] <= 'z':
			print(chr(ord(s[i]) - 32), end='')
		else:
			print(s[i], end='')
	else:
		print(s[i], end='')


def capslock(grapheme):
	if 64 < ord(grapheme) < 91:
		return 1
	else:
		return 0

def change(grapheme):
	if 64 < ord(grapheme) < 91:
		grapheme = chr(ord(grapheme) + 32)
	elif 96 < ord(grapheme) < 123:
		grapheme = chr(ord(grapheme) - 32)
	return grapheme
word = list(input())
correctedword = ''
if capslock(word[0]) == 0:
	word[0] = change(word[0])
for i in word:
	correctedword = correctedword + i
print(correctedword)


def main():
	word = list(input())
	print(''.join(word[0].upper() + ''.join(word[1:])))
main()


str_ = input()
str_ = str_[0].upper() + str_[1:]
print(str_)


m = input()
if m[0].isupper() == True:
	print(m)
elif m[1:].isupper() == True and m[0].islower() == True:
	print(m)
elif m[1:].islower() == True:
	print(m.capitalize())
else:
	print(m[0].capitalize() + m[1:])


s = input()
if ord(s[0]) >= 97 or ord(s[0]) <= 122:
	a = s[0].upper()
	print(a + s[1:])


s = str(input())
if ord(s[0]) >= 97:
	print(str(chr(ord(s[0]) - 32)) + s[1:])
else:
	print(s)


import math
import os
import random
import re
import sys

def solve():
	word = str(input())
	return word[0].capitalize() + word[1:]
result = solve()
print(result)


a = list(input())
c = a[0].upper()
a[0] = c
print(''.join(a))


word = input()
word = list(word)
txt = word[0].upper()
word.remove(word[0])
word.insert(0, txt)
txt = ''.join(word)
print(txt)


word = input()
arr = list(word)
arr[0] = arr[0].upper()
word1 = ''.join(arr)
print(word1)


_1 = '236a'
_2 = '339a'
_3 = '266a'
_4 = '96a'
_5 = '236a'
_6 = '281a'
l = list(str(input()))
t = l[0].upper()
print(t + ''.join(l[1:]))


a = input()
b = len(a)
for i in range(b):
	if i == 0:
		c = a[i].title()
	else:
		c = a[i]
	print(c, end='')


t = input()
char = t[0].upper()
print(char + t[1:])


words = input()
length = len(words)
arr = []
unicode = ord(words[0]) - 32
if unicode >= 65:
	arr.append(chr(unicode) + words[1:])
	print(','.join(arr))
else:
	print(words)


def main():
	s = input()
	print(s[0].upper() + s[1:])
	return 0
main()


m = input()
l = m[0].upper()
res = l + m[1:]
print(res)


s = input()
t = s[0]
if t.islower():
	t = t.upper()
	print(t, end='')
	print(s[1:len(s)])
else:
	print(s)


n = input()
s = ''
for char in n:
	if char == char.lower():
		s = char.upper() + n[1:len(n)]
		break
	else:
		print(n)
	break
print(s)


s = input().strip()
print('{}{}'.format(s[0].upper(), s[1:]))


a = input().strip().split()[0]
if len(a) > 1:
	print(a[0].upper() + a[1:])
else:
	print(a[0].upper())


entrada = input()
if ord(entrada[0]) >= 97 and ord(entrada[0]) <= 122:
	print(entrada[0].upper() + entrada[1:])
else:
	print(entrada)


word = list(str(input()))
word[0] = word[0].upper()
capitalized = ''.join(word)
print(capitalized)


before = input()
after = before[0].upper() + before[1:]
print(after)


final = ''
string = list(map(str, list(input())))
i = 0
for a in string:
	i += 1
	if i == 1:
		final += a.upper()
	else:
		final += a
print(final)


n = input()
if 97 <= ord(n[0]) <= 122:
	print(chr(ord(n[0]) - 32) + n[1:len(n)])
else:
	print(n)


s = str(input())
x = s[0].capitalize()
w = len(s)
y = s[1:w]
print(x + y)


import string
line = input()
if line[0] in string.ascii_uppercase:
	print(line)
else:
	new = line[0].swapcase() + line[1:]
	print(new)


a = input()
q = a[0].capitalize()
q += a[1:]
print(q)


T = input()
K = T[0].upper()
T = K + T[1:]
print(T)


n = input()
v = []
for i in range(len(n)):
	v.append(n[i])
if ord(v[0]) >= 97 and ord(v[0]) <= 122:
	v[0] = chr(ord(v[0]) - 32)
	print(*v, sep='')
else:
	print(*v, sep='')


x = str(input())
a = list(x)
a[0] = x[0].upper()
print(''.join(a))


word = input().lstrip()
try:
	print(word if word[0].isupper() else word[0].upper() + word[1:])
except:
	pass


n = [x for x in input()]
n[0] = n[0].upper()
print(''.join(n))


s = str(input())
if s[0].isupper() == True:
	print(s)
else:
	x = s[0].upper() + s[1:]
	print(x)


import math
from sys import stdin, stdout

def get_int():
	return int(stdin.readline().strip())

def get_ints():
	return map(int, stdin.readline().strip().split())

def get_string():
	return stdin.readline().strip()

def get_list():
	return list(map(int, stdin.readline().strip().split()))
s = get_string()
stdout.write(s[0].upper() + s[1:])


d = input()
y = d[0].upper() + d[1:]
print(y)


def solver(text):
	print(text[0].upper() + text[1:])
solver(input())


str = input()
if len(str) > 0 & str[0].islower():
	print(str[0].upper() + str[1:])
else:
	str


x = input()
x = ' '.join((x[0].upper() + x[1:] for x in x.split()))
print(x)


a = input()
b = a[0]
k = ''
r = 1
while r < len(a):
	k += a[r]
	r += 1
if ord(a[0]) > 96:
	b = chr(ord(a[0]) - 32)
k = b + k
print(k)


s = input()
s = list(s)
s[0] = s[0].upper()
t = ''
for i in s:
	t = t + i
print(t)


p = input()
l = []
for i in range(len(p)):
	if i == 0:
		l.append(p[i].upper())
	else:
		l.append(p[i])
print(*l, sep='')


I = lambda : list(map(int, input().split()))
s = list(input())
s[0] = s[0].upper()
print(''.join(s))


s = list(input())
c = s[0]
t = c.upper()
s[0] = t
m = ''.join(s)
print(m)


s = input()
b = [i for i in s]
if b[0].islower():
	b[0] = b[0].upper()
	b = ''.join(b)
	print(b)
else:
	print(s)


s = input()
s1 = ord(s[0])
if s1 >= 97 and s1 <= 122:
	s2 = chr(s1 - 32)
	s2 += s[1:]
else:
	s2 = s
print(s2)


word = input()
i = 0
first_letter = word[i].upper()
for x in range(1, len(word)):
	first_letter += word[x]
print(first_letter)


def main():
	s = input()
	print(s[:1].upper() + s[1:])
main()


s = str()
s = input()
if s[0] >= 'a' and s[0] <= 'z':
	s = s[:1].upper() + s[1:]
print(s)


s = input()
if ord(s[0]) > 96:
	s = chr(ord(s[0]) - 32) + s[1:len(s)]
print(s)


n = input()
a = 'abcdefghijklmnopqrstuvwxyz'
a1 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
if n[0] in a:
	print(a1[a.index(n[0])] + n[1:])
else:
	print(n)


txt = input()
cap = txt.replace(txt[0], txt[0].upper(), 1)
print(cap)


input = str(input())
output = ''
output += input[0].upper()
for i in range(len(input) - 1):
	output += input[i + 1]
print(output)


n = input()
if ord(n[0]) > 96:
	n = chr(ord(n[0]) - 32) + n[1:]
print(n)


ip = input()
c = ord(ip[0])
if c >= 97:
	c -= 32
	print(chr(c) + ip[1:])
else:
	print(ip)


arr = list(input().split())
for i in range(len(arr)):
	if not arr[i][0].isupper():
		arr[i] = chr(ord(arr[i][0]) - 32) + arr[i][1:]
print(*arr)


import sys
input = sys.stdin.readline

def main():
	s = input().strip()
	ans = s[0].upper() + s[1:]
	print(ans)
main()


string = input()
x = string[0].upper()
new_string = string.replace(string[0], x, 1)
print(new_string)


s = str(input())
c = ord(s[0])
if c > 96:
	k = str()
	c = c - 32
	k = k + chr(c)
	for i in s[1:]:
		k = k + i
else:
	k = s
print(k)


(z, zz) = (input, lambda : list(map(int, z().split())))
zzz = lambda : [int(i) for i in stdin.readline().split()]
(szz, graph, mod, szzz) = (lambda : sorted(zz()), {}, 10 ** 9 + 7, lambda : sorted(zzz()))
from string import *
from re import *
from collections import *
from queue import *
from sys import *
from collections import *
from math import *
from heapq import *
from itertools import *
from bisect import *
from collections import Counter as cc
from math import factorial as f
from bisect import bisect as bs
from bisect import bisect_left as bsl
from itertools import accumulate as ac
from itertools import permutations as permu

def lcd(xnum1, xnum2):
	return xnum1 * xnum2 // gcd(xnum1, xnum2)

def prime(x):
	p = ceil(x ** 0.5) + 1
	for i in range(2, p):
		if x % i == 0 and x != 2 or x == 0:
			return 0
	return 1

def dfs(u, visit, graph):
	visit[u] = True
	for i in graph[u]:
		if not visit[i]:
			dfs(i, visit, graph)
s = z()
print(s[0].upper() + s[1:])


msb = input()
l = list(msb)
l[0] = l[0].upper()
k = ''.join(l)
print(k)


s = input()
a = s[0]
i = len(s)
b = s[1:i]
c = a.upper()
d = []
d += c + b
print(''.join(d))


def split(word):
	return list(word)
capital_Input = input('')
compare_List = split(capital_Input)
a = compare_List[0].upper()
print(a + capital_Input[1:])


import sys
s = input()
print(s[0].upper() + s[1:])


string = input()
a = []
for i in range(len(string)):
	if i == 0:
		a.append(string[i].upper())
	else:
		a.append(string[i])
s = ''
for i in range(len(a)):
	s += a[i]
print(s)


n = list(input())
n[0] = n[0].upper()
print(''.join([str(i) for i in n]))


def seperateints(x):
	k = ''
	l = []
	for i in x:
		if i == ' ':
			l.append(int(k))
			k = ''
			continue
		k = k + i
	l.append(int(k))
	return l
s = input()
x = s[0].upper()
kk = x + s[1:]
print(kk)


s = input()
char = s[0]
newchar = char.upper()
zad = s[1:len(s)]
print(newchar + zad)


n = str(input())
x = str(n[0])
y = x.upper()
w = list(n)
w.pop(0)
w.insert(0, y)
for i in range(len(w)):
	print(w[i], end='')


a = [x for x in input()]
a[0] = a[0].upper()
for i in a:
	print(i, end='')


word = input()
a = word[0]
b = a.upper()
k = word + '0'
c = k[1:-1]
print(b + c)


a = input()
z = a[:1]
x = a[1:]
z = z.upper()
print(z, end='')
print(x)


a = input()
l = []
summ = ''
for i in range(0, len(a)):
	if i == 0:
		b = a[i]
		l.append(b.upper())
	else:
		l.append(a[i])
for i in l:
	summ += i
print(summ)


word = input()
fl = word[0].upper()
print(fl + word[1:])


character_name = input()
print(character_name[0].upper() + character_name[1:])


s = str(input())
if 1 <= len(s) <= 10000:
	for i in range(0, len(s)):
		s = s[0].upper() + s[1:]
	print(s)


inp = input()
print(inp.upper()[0], inp[1:], sep='')


a1 = 'abcdefghijklmnopqrstuvwxyz'
a2 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
s = input()
L = []
for i in range(0, len(s)):
	if i == 0:
		if s[0] in a1:
			m = a1.index(s[0])
			L.append(a2[m])
		else:
			L.append(s[0])
	else:
		L.append(s[i])
print(''.join(L))


word = str(input())
myList = []
myList.append(word[0].upper())
for i in range(1, len(word)):
	myList.append(word[i])
print(''.join(myList))


n = input()
lst = []
lstx = []
for i in n:
	lst.append(i)
k = lst[0].upper()
lst.remove(lst[0])
lst.insert(0, k)
w = ''.join(lst)
print(w)


initial = input()
answer = ''
for i in range(0, len(initial)):
	if i == 0:
		answer += initial[i].upper()
	else:
		answer += initial[i]
print(answer)


s = input()
k = s[0:1]
up = k.upper()
print(up + s[1:len(s)])


s1 = input()
s1.split(' ')
chindex = 1
for letter in s1.split(' '):
	if chindex == 1:
		print(letter[0].upper() + '' + letter[1:len(letter)], end=' ')
	else:
		print(letter)


s = input()
ch1 = s[0].upper()
ch = ch1 + s[1:]
print(ch)


Str = input()
Str = Str[0].upper() + Str[1:]
print(Str)


string = input()
for (index, char) in enumerate(string):
	if index == 0:
		print(char.upper(), end='')
	else:
		print(char, end='')
print()


s = input()
a = [chr(i) for i in range(ord('a'), ord('z') + 1)]
A = [chr(i) for i in range(ord('A'), ord('Z') + 1)]
if s[0] in a:
	print(chr(ord(s[0]) + ord('A') - ord('a')), end='')
	print(s[1:len(s)])
else:
	print(s)


word = input()
n_let = word[0].upper()
i = 1
rst_word = []
for x in word:
	rst_word.append(x)
	i = i + 1
	pass
rst_word.remove(rst_word[0])
print(n_let + ''.join(rst_word), end='')


isFirst = True
for c in input():
	if isFirst:
		print(c.upper(), end='')
		isFirst = False
		continue
	print(c, end='')


n = list(input())
n[0] = n[0].upper()
ans = ''
print(ans.join(n))


s = input()
b = s[0]
c = s.replace(b, '', 1)
d = b.capitalize()
print(d + c)


import sys
import math
import bisect

def main():
	A = list(input())
	A[0] = A[0].upper()
	print(''.join(A))
main()


cadena = input()
if cadena[0] == cadena[0].upper():
	print(cadena)
else:
	res = cadena[0].upper()
	resu = cadena[1:]
	print(res + resu)


in0 = input()
if in0[0].isupper():
	print(in0)
else:
	print(in0[0].upper() + in0[1:])


x = input()
l = []
for i in x:
	l.append(i)
q = ord(l[0])
if q > 90:
	l[0] = chr(q - 32)
	p = ''.join(l)
	print(p)
else:
	print(x)


s = input()
l = len(s)
if l >= 1 and l <= 10 ** 3:
	cs = s[0].upper() + s[1:l + 1]
	print(cs)


s = input()
n = len(s)
i = 0
l = ''
for x in s:
	if i == 0:
		ch = x.upper()
		l = l + ch
	else:
		l = l + x
	i += 1
print(l)


palavra = list(input())
palavra[0] = palavra[0].upper()
for x in range(len(palavra)):
	print(palavra[x], end='')


s = str(input())
lst = []
for i in s:
	lst.append(i)
lst[0] = lst[0].upper()
result = ''
for i in lst:
	result += i
print(result)


perv = input()
e = []
for i in range(len(perv)):
	if i == 0:
		x = perv[i].upper()
		e.append(x)
	else:
		e.append(perv[i])
print(''.join(e))


def hi():
	a = input()
	print(a[0].upper() + a[1:])
hi()


s = input()
cap = s[0]
rest = s[1:]
cap = cap.upper()
s = cap + rest
print(s)


def capitalize(word):
	capitalized_word = word[0].capitalize()
	for i in range(1, len(word)):
		capitalized_word += word[i]
	return capitalized_word
word = input().strip()
print(capitalize(word))


S = input()
S1 = S[:1]
S2 = S[1:]
S1 = S1.upper()
print(S1 + S2)


s = input()
n = len(s)
alp = 'abcdefghijklmnopqrstuvwxyz'
c = ''
if s[0] in alp:
	f = s[0].upper()
	for i in range(1, n):
		c = c + s[i]
	c = f + c
	print(c)
else:
	print(s)


n = input()
k = list(n)
if k[0].isupper() == True:
	print(n)
else:
	k[0] = k[0].upper()
	for i in k:
		print(i, end='')


s = input()
l = list(s)
if s[0].istitle():
	print(s)
else:
	l[0] = chr(ord(l[0]) - 32)
	s = ''.join(l)
	print(s)


string = input()
strr = ''
if ord(string[0]) >= 97 and ord(string[0]) <= 122:
	strr = strr + chr(ord(string[0]) - 32)
	for char in range(1, len(string)):
		strr = strr + string[char]
	print(strr)
else:
	print(string)


ui = input()
if ui[0].isupper():
	print(ui)
else:
	print(ui[0].upper() + ui[1:])


a = input()
b = list(a)
d = ''
if ord(b[0]) > 90:
	b[0] = chr(ord(b[0]) - 32)
	c = 0
	while c < len(b):
		d = d + b[c]
		c = c + 1
	print(d)
else:
	print(a)


word = input()
if len(word) == 1:
	print(word[0].upper())
else:
	word_new = word[0].upper() + word[1:len(word)]
	print(word_new)


a = [i for i in input()]
print(a[0].upper() + ''.join(a[1:]))


instr = str(input())
alphaone = instr[0]
remain = instr[1:len(instr)]
alphaone = alphaone.upper()
print(alphaone + remain)


temp = input()
Ca = temp[0].upper()
print(Ca + temp[1:])


def solution():
	word = list(input())
	word[0] = word[0].upper()
	print(''.join(word))
solution()


word = input()
word_cap = list(word.capitalize())
word_cap[1:] = list(word)[1:]
print(''.join(word_cap))


a = input()
b = list(a)
d = str(b[0])
e = d.upper()
b.remove(b[0])
b.insert(0, e)
c = ''
print(c.join(b))


s = str(input())
d = s
s = list(s)
if ord(s[0]) > 90:
	p = d.capitalize()
	s[0] = p[0]
e = ''
for i in s:
	e += i
print(e)


s = input()
first = s[0]
if ord(s[0]) >= 96:
	first = chr(ord(s[0]) - 32)
print(first + s[1:])


wordCap = input()
LatinLow = 'abcdefghijklmnopqrstuvwxyz'
LatinUp = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
outputWord = ''
WHead = wordCap[0]
if wordCap[0] in LatinLow:
	tmp = LatinLow.find(wordCap[0])
	WHead = LatinUp[tmp]
for i in range(0, len(wordCap)):
	if i == 0:
		outputWord = outputWord + WHead
	else:
		outputWord = outputWord + wordCap[i]
print(outputWord)


s = input()
cs = s[0].capitalize() + s[1:]
print(cs)


s = [n for n in input()]
if ord(s[0]) >= 97:
	s[0] = chr(ord(s[0]) - 32)
else:
	s[0] = s[0]
for n in range(len(s)):
	print(s[n], end='')


str_input = input()
str_old = list(str_input)
str_upper = list(str_input.upper())
str_old[0] = str_upper[0]
print(''.join(str_old))


w = input()
s = ''
s += w[0].upper()
for i in range(len(w) - 1):
	s += w[i + 1]
print(s)


def main():
	S = input()
	print(S[0].upper() + S[1:])
main()


In = input()
Out = In[0].upper() + In[1:]
print(Out)


word = input('')
if not word[0].islower():
	print(word)
else:
	print(word[0].upper() + word[1:])


s = input()
if s[0].islower():
	c = s[0].upper()
	s = c + s[1:len(s)]
else:
	pass
print(s)


i = input()
l = list(i)
q = l[0].capitalize()
l.pop(0)
h = ''
for j in l:
	h += j
print(q + h)


word = list(input())
word[0] = word[0].upper()
ans = ''
for i in word:
	ans += i
print(ans)


l = input()
k = []
for i in range(len(l)):
	if i == 0:
		k.append(l[0].upper())
	else:
		k.append(l[i])
k = ''.join(k)
print(k)


def word_capitalization():
	string = input()
	string_new = string[0].upper() + string[1:]
	print(string_new)
	return
word_capitalization()


line = input()
left = line[0:1]
right = line[1:]
print(left.upper() + right)


s = input()
ans = ''
for i in range(len(s)):
	if i == 0:
		if ord(s[i]) >= 97:
			ans += chr(ord(s[i]) - 32)
		else:
			ans += s[i]
	else:
		ans += s[i]
print(ans)


print((lambda a: a[0].upper() + a[1:])(input()))


str1 = input()
str1 = list(str1)
str1[0] = str1[0].capitalize()
str2 = ''
for i in str1:
	str2 += i
print(str2)


x = list(str(input()))
if x[0].islower():
	x[0] = x[0].upper()
print(''.join(x))


word = list(str(input()))
if 96 < ord(word[0]) < 123:
	word[0] = chr(ord(word[0]) - 32)
output = ''.join(word)
print(output)


def capitalize(word):
	letters = list(word)
	letters[0] = letters[0].upper()
	final_word = ''.join([str(elem) for elem in letters])
	return final_word
word = input()
print(capitalize(word))


word = input()
letter_list = list(word)
if word[0].isupper():
	print(word)
else:
	letter_list.insert(0, letter_list.pop(0).upper())
	print(''.join(letter_list))


s = input()
res = ''
if ord(s[0]) >= 97:
	res += chr(ord(s[0]) - 32)
	res += s[1:]
else:
	res = s
print(res)


cap = input()
newCap = []
newCap.append(cap[0].upper())
for i in range(1, len(cap)):
	newCap.append(cap[i])
print(''.join([str(c) for c in newCap]))


new = list(input())
f = new[0].upper()
del new[0]
new.insert(0, f)
new = ''.join(new)
print(new)


from sys import stdin

def readInts():
	return map(int, stdin.readline().strip().split())

def solve(s):
	out = []
	out.append(s[0].upper())
	for c in s[1:]:
		out.append(c)
	return ''.join(out)

def run():
	s = stdin.readline().strip()
	print(solve(s))
run()


word = input()
first = word[0]
cap = first.upper()
result = cap + word[1:]
print(result)


word = str(input())
each_word = [x for x in word]
ascii = ord(each_word[0])
if ascii >= 97 and ascii <= 122:
	each_word[0] = chr(ascii - 32)
sep = ''
word = sep.join(each_word)
print(word)


def con(n):
	return n[0].upper() + n[1:]
n = input()
print(con(n))


def main():
	word = list(input())
	word[0] = word[0].upper()
	result = ''.join(word)
	print(result)
main()


s = input()
fh = s[0]
sh = s[1:]
fh = fh.capitalize()
s = fh + sh
print(s)


import math
s = input()
s = list(s)
s[0] = s[0].upper()
s = ''.join(s)
print(s)


t = input()
ans = ''
ans += t[0].upper()
for i in range(1, len(t)):
	ans += t[i]
print(ans)


n = input()
if ord(n[0]) >= 97:
	print(n[0].upper() + n[1:])
else:
	print(n)


import array as arr
ans = arr.array('i')
ans = input()
ans2 = ans.upper()
print(ans2[0] + ans[1:])


word = input()
new_word = ''
i = 0
while i < len(word):
	if i == 0:
		new_word = new_word + word[i].upper()
	else:
		new_word = new_word + word[i]
	i += 1
print(new_word)


word = input()
if word[0].isupper() == False:
	word = word[0].upper() + word[1:]
print(word)


w = input()
fix = ''
if w[0].lower():
	fix = w[0].upper() + w[1:]
	print(fix)
else:
	print(w)


letter = input()
first = letter[0]
print(first.capitalize() + letter[1:])


w = input()
if w[0] <= 'Z' and w[0] >= 'A':
	print(w)
else:
	print(w[0].capitalize() + w[1:])


l1 = list(input())
l1[0] = l1[0].upper()
s = ''.join(l1)
print(s)


str1 = str(input())
arr = list(str1)
arr[0] = arr[0].upper()
print(''.join(arr))


s = input()
n = 0
m = []
for x in s:
	m.append(x)
j = m[0]
m[0] = j.upper()
for i in range(0, len(s)):
	print(m[i], end='')


str = input()
l = len(str)
s = str[0].upper()
r = str[1:l]
print(s + r)


output = input()
print(output[0].upper() + output[1:])


t = input().strip()
t_n = ''
if ord(t[0]) >= 97 and ord(t[0]) <= 122:
	t_n += chr(ord(t[0]) - 32)
elif ord(t[0]) >= 65 and ord(t[0]) <= 90:
	t_n += t[0]
for i in range(1, len(t)):
	t_n += t[i]
print(t_n)


inputstring = input()
char = inputstring[0].capitalize()
print(char + inputstring[1:])


str = input()
res = ''
l = len(str)
cap = str[0]
cap = cap.upper()
res += cap
res += str[1:l]
print(res)


s = input()
r = s[0]
l = r.upper() + s[1:]
print(l)


str = input()
print(f'{str[0:1].upper()}{str[1:]}')


N = input('')
NN = N.capitalize()
PL = str(NN[0])
Res = ''
for K in range(len(N)):
	if K == 0:
		Res = Res + PL
	else:
		Res = Res + str(N[K])
print(Res)


w1 = ''
l1 = list(input())
l1[0] = l1[0].upper()
for a in range(len(l1)):
	w1 += l1[a]
print(w1)


stri = input()
print(stri[0].upper(), end='')
print(stri[1:len(stri)])


word = list(input())
nun = word[0]
word.remove(nun)
word.insert(0, nun.upper())
answ = ''.join(word)
print(answ)


string = input()
l = [string[0].upper()]
for ch in range(1, len(string)):
	l.append(string[ch])
print(''.join(l))


str_input = input()
first_let = str_input[0].capitalize()
str_out = first_let + str_input[1:]
print(str_out)


s = input()
s1 = 'abcdefghijklmnopqrstuvwxyz'
s2 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
v = ''
for i in range(1, len(s)):
	v = v + s[i]
if s[0] in s2:
	print(s)
else:
	k = 0
	for i in range(len(s1)):
		if s1[i] == s[0]:
			k = i
			break
	print(s2[k] + v)


word = input()
result = word[0].capitalize() + word[1:]
print(result)


s = input()
new_word = ''
new_word += s[0].title()
if len(s) > 1:
	new_word += s[1:]
print(new_word)


w = input()
s = ''
n = 0
for i in w:
	if n == 0:
		s += i.upper()
	else:
		s += i
	n = 1
print(s)


try:
	x = input()
	y = x[0].upper()
	z = x[1:]
	print(str(y) + str(z))
except:
	pass


s = input()
final = s[0].upper() + s[1:]
print(final)


string = input()
is_first = True
new_string = ''
for i in string:
	if is_first:
		is_first = False
		new_string += i.upper()
	else:
		new_string += i
print(new_string)


s = input()
l = list(s)
a = l[0]
if l[0] >= 'a' and l[0] <= 'z':
	l[0] = l[0].upper()
	r = ''.join(l)
	print(r)
else:
	print(s)


def solve(s):
	s = list(s)
	first = s[0]
	if ord(first) >= 97:
		s.pop(0)
		s = chr(ord(first) - 32) + ''.join(s)
	return ''.join(s)
s = input()
print(solve(s))


def wordCapitalization(str):
	key = str[0].upper()
	for s in range(1, len(str)):
		key += str[s]
	print(key)
wordCapitalization(input())


s = str(input())
print(s[0].upper() + s[1:])
x = 0
x = 0
x = 9


x = input()
y = x[0]
z = y.upper()
if x[0] == x[0].upper():
	print(x)
elif x[0] != x[0].upper():
	print(z + x[1:])


N = str(input())
Word = N[0].upper() + N[1:]
print(Word)


r = input()
s = []
p = r[0].upper()
for i in range(1, len(r)):
	p += r[i]
print(p)


s = input()
if ord(s[0]) > 96:
	t = chr(ord(s[0]) - 32)
else:
	t = s[0]
for i in range(1, len(s)):
	t = t + s[i]
print(t)


ans = str(input())
if ans[0] == ans[0].capitalize():
	print(ans)
else:
	print(ans[0].capitalize() + ans[1:])


string = input()
print(chr(ord(string[0]) - 32) + string[1:] if ord(string[0]) > 96 else string)


s = str(input())
t = ''
if ord(s[0]) >= 97:
	t = t + chr(ord(s[0]) - 32)
else:
	t = t + s[0]
for i in range(1, len(s)):
	t = t + s[i]
print(t)


word = input()
w = word[0].upper()
caps = w + word[1:]
print(caps)


st = input()
li = [i for i in st]
li[0] = li[0].upper()
print(''.join(li))


str1 = input()
str2 = ''
for i in range(0, len(str1)):
	if i == 0:
		str2 += str1[i].upper()
	else:
		str2 += str1[i]
print(str2)


import string
s = input()
if s[0] in string.ascii_lowercase:
	s = string.ascii_uppercase[string.ascii_lowercase.index(s[0])] + s[1:]
print(s)


import sys, math

def ii():
	return int(input())

def mii():
	return map(int, input().split())

def lmii():
	return list(mii())

def main():
	s = input()
	d = s[:1]
	print(d.upper(), end='')
	print(s[1:])
main()


def Capitalization(x):
	a = ''
	for i in range(len(x)):
		if i != 0:
			a += x[i]
		else:
			a += x[i].upper()
	print(a)
Capitalization(input())


s = str(input())
a = []
for _ in range(len(s)):
	a.append(s[_])
if ord(a[0]) > 90:
	a[0] = chr(ord(a[0]) - 32)
for _ in range(len(a)):
	print(a[_], end='')


inp = input()
sout = inp[0].upper()
for i in range(1, len(inp)):
	sout += inp[i]
print(sout)


o1 = [i for i in range(65, 91)]
o2 = [i for i in range(97, 123)]
s1 = input()
a = ord(s1[0])
if a in o2:
	a = o1[o2.index(a)]
	s2 = chr(a) + s1[1:]
else:
	s2 = s1
print(s2)


string = input()
printing_string = ''
printing_string += string[0].capitalize()
printing_string += string[1:]
print(printing_string)


n = input()
if n[0].islower():
	t = n[0].upper()
	n = t + n[1:]
print(n)


s = input()
a = [i for i in s]
if a[0] == a[0].upper():
	print(''.join(a))
else:
	a[0] = a[0].upper()
	print(''.join(a))


s = input()
if s[0].isupper() == True:
	print(s)
else:
	s1 = s.capitalize()
	print(s1[0] + s[1:])


c = input()
print(c[0].title() + c[1:])


a = list(input())
a[0] = a[0].upper()
for x in a:
	print(x, end='')


string = input()
print(f'{string[0].upper()}{string[1:len(string)]}')


import sys
seq = [x for x in input()]
if ord(seq[0]) > int(96):
	seq[0] = chr(ord(seq[0]) - 32)
for x in seq:
	sys.stdout.write(x)
print()


def main():
	line = input().strip()
	print(line[0].upper() + line[1:])
main()


a = input()
t = ''
flag = 0
if a[0].islower():
	flag = 1
	t = t + a[:1].upper() + a[1:]
	print(t)
else:
	print(a)


word = input()
first = word[0]
rest = word[1:]
first_prime = first.upper()
opt = first_prime + rest
print(opt)


strr = input()
da = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
x = 'abcdefghijklmnopqrstuvwxyz'
if strr[0] not in da:
	t = strr[0]
	strr = strr[1:len(strr)]
	strr = da[x.find(t)] + strr
print(strr)


n = input()
word = ''
for i in range(1):
	word += n[i].upper()
for j in range(1, len(n)):
	word += n[j]
print(word)


x = input()
f = x[0].upper()
l = x[-len(x) + 1:]
if len(x) != 1:
	print(f + l)
else:
	print(f)


inp = input()
inplst = []
for char in inp:
	inplst.append(char)
inplst[0] = inplst[0].upper()
for i in inplst:
	print(i, end='')


from typing import NewType
word = input()
capital = word[0].capitalize()
n = len(word)
new_word = word[1:n]
my_word = capital + new_word
print(my_word)


str = input()
if str[0] == 'a' or 'b' or 'c' or 'd' or 'e' or 'f' or 'g' or 'h' or 'i' or 'j' or 'k' or 'l' or 'm' or 'n' or 'p' or 'q' or 'r' or 's' or 't' or 'u' or 'v' or 'w' or 'x' or 'y' or 'z':
	str = str[0].upper() + str[1:]
print(str)


f = str(input())
g = f[0]
d = ''
l = len(f)
d = d + g.capitalize()
d = d + str(f[1:l])
print(d)


n = str(input())
t = []
for letter in n:
	t.append(letter)
b = t[0].upper()
print(b + ''.join(t[1:]))


word = input()
result = list(word)
first_letter = result.pop(0)
result.insert(0, first_letter.title())
print(''.join(result))


n = input()
l = len(n)
p = n
p = p.upper()
for x in range(l):
	if x == 0:
		print(p[0], end='')
	else:
		print(n[x], end='')


s = input()
up = s[0].upper()
line = s[1:]
print(up + line)


s = input()
n = len(s)
if s[0].islower():
	p = s[0].upper()
	print(p + s[1:n])
else:
	print(s)


from sys import stdin, stdout

def main():
	word = str(stdin.readline().rstrip())
	word = word[0].upper() + word[1:]
	stdout.write(str(word) + '\n')
main()


x = input()
y = x[1:len(x)]
x = x.capitalize()
z = x[0]
k = z + y
print(k)


s = input()
low = 'abcdefghijklmnopqrstuvwxyz'
high = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
if s[0] in low:
	s = high[low.index(s[0])] + s[1:]
print(s)


data = input()
data_list = list(data)
if data_list[0].isupper() == False:
	data_list[0] = data_list[0].upper()
print(''.join(data_list))


s = input()
tmp = s[0]
ans = ''
cap = tmp.capitalize()
i = 1
while i < len(s):
	ans += s[i]
	i += 1
print(cap + ans)


q = str(input())
y = q[0].upper() + q[1:]
print(y)


n = input()
s = n[0]
z = s
s = s.lower()
if n[0] == s:
	z = z.upper()
	print(z + n[1:])
else:
	print(n)


k = input()
b = '' + k[0].upper()
for i in [k[i] for i in range(1, len(k))]:
	b += i
print(b)


s = input()
x = s[0]
z = x.capitalize()
fixed = s[1:]
print(z, end='')
print(fixed)


x = input()
z = []
for i in x:
	z.append(i)
z.pop(0)
d = x[0].upper()
for k in z:
	d = d + str(k)
print(d)


import sys
import math
import os
data = input()
print(data[0].upper(), data[1:], sep='')


stra = input()
if len(stra) > 0 and stra[0].islower():
	print(stra[0].upper() + stra[1:])
else:
	print(stra)


def capitalize(c):
	if ord(c) >= 97 and ord(c) <= 122:
		return chr(ord(c) - 32)
	return c
word = input()
word_captitalized = ''
first_word = True
for c in word:
	if first_word:
		word_captitalized += capitalize(c)
		first_word = False
	else:
		word_captitalized += c
print(word_captitalized)


s = input()
s1 = s.upper()
l = s[1:]
print(s1[0], end='')
print(l)


a = list(input())
b = a.pop(0)
a.insert(0, b.upper())
print(''.join(a))


s = input()
s = list(s)
if ord(s[0]) >= 97:
	s[0] = chr(ord(s[0]) - 32)
n = ''
for c in s:
	n += c
print(n)


s = input()
rem = s[1:]
u = s[0].upper()
final = u + rem
print(final)


s = input()
s1 = list(s)
s1[0] = s1[0].upper()
s = ''.join(s1)
print(s)


s = input()
s = s[:1].title() + s[1:]
print(s)


w = input()
if ord('A') <= ord(w[0]) <= ord('Z'):
	print(w)
else:
	print(chr(ord(w[0]) + ord('A') - ord('a')) + w[1:])


input_s = input()
isUpper = True
result = ''
for i in range(len(input_s)):
	result += input_s[i].upper() if isUpper else input_s[i]
	isUpper = input_s[i] == ' '
print(result)


word = input()
word_list = list(word)
if ord(word_list[0]) > ord('Z'):
	word_list[0] = chr(ord(word_list[0]) - (ord('a') - ord('A')))
print(''.join(word_list))


ls = list(input())
if ls[0] not in 'QWERTYUIOPASDFGHJKLZXCVBNM':
	ls[0] = chr(ord(ls[0]) - 32)
print(''.join(ls))


def solution(s):
	li = list(s)
	li[0] = li[0].upper()
	st = ''
	for i in li:
		st += i
	print(st)
s = input()
solution(s)


a = input().rstrip()
print(a[0].upper() + a[1:])


word = list(input())
firstword = word[0]
firstwordcap = firstword.capitalize()
word.remove(word[0])
rest = word
listToStr = ''.join([str(elem) for elem in rest])
output = firstwordcap + listToStr
print(output)


def solve(capitalize_word):
	result = ''
	for character in range(len(capitalize_word)):
		if character == 0:
			result += capitalize_word[character].upper()
	result += capitalize_word[1:]
	return result
word = input()
print(solve(word))


s = input()
if 96 < ord(s[0]) < 123:
	s = s[0].upper() + s[1:]
print(s)


def test():
	st = input()
	if st[0].isupper():
		print(st)
	else:
		print(st[0].upper() + st[1:])
test()


st = input()
st1 = ''
if st[0].islower():
	st = st[0].upper() + st[1:]
	print(st)
else:
	print(st)


word = input('')
caps = word[0].upper()
rest = word[1:]
total = caps + rest
print(total)


m = input()
l = list(m)
l[0] = l[0].upper()
s = ''
for i in l:
	s += i
print(s)


s1 = input()
c = s1[0]
if c.islower():
	s2 = str(c.upper())
	s3 = s1[1:]
	s2 += s3
	print(s2)
else:
	print(s1)


from sys import stdin, stdout
str1 = input()
if ord(str1[0]) >= 97:
	value = ord(str1[0]) - 32
	str2 = chr(value) + str1[1:]
	print(str2)
else:
	print(str1)


import sys
input = sys.stdin.readline

def insr():
	return input()

def solve(s):
	return s[0].upper() + s[1:]
s = insr()
print(solve(s[:-1]))


s = input()
p = s[0]
b = []
b.append(p.upper())
for i in range(1, len(s)):
	b.append(s[i])
print(*b, sep='')


w = input()
w2 = w.upper()
print(w2[:1] + w[1:])


import sys
import math
import collections
from collections import deque
from functools import reduce
from sys import stdin, stdout, setrecursionlimit
setrecursionlimit(2 ** 20)

def factors(n):
	return list(set(reduce(list.__add__, ([i, n // i] for i in range(1, int(n ** 0.5) + 1) if n % i == 0))))
s = str(stdin.readline().strip('\n'))
print(s[0].upper() + s[1:])


k = input()
one = list(k)
one[0] = one[0].upper()
print(''.join(one))


wejscie = input()
z = ''
z = z + wejscie[0].capitalize()
for i in range(1, len(wejscie)):
	z = z + wejscie[i]
print(z)


s = input()
prvo = s[0].capitalize()
print(prvo + s[1:])


s = input()
if s[0].isupper():
	print(s)
else:
	res = s[0].upper()
	print(res + s[1:])


s = input()
if s[0] == s[0].upper():
	print(s)
else:
	z = s[0].upper() + s[1:]
	print(z)


s = input()
first = s[:1].upper()
rem = s[1:]
print(first + rem)


wordIn = str(input())
first = wordIn[0]
if first.islower():
	first = first.upper()
wordIn = wordIn[1:]
wordIn = first + wordIn
print(wordIn)


str1 = input()
for i in range(len(str1)):
	if i == 0 and str1[i].upper() != str1[i]:
		str1 = str1[0].upper() + str1[1:]
		print(str1)
		break
	else:
		print(str1)
		break


n = list(input())
if ord(n[0]) <= 90:
	pass
else:
	n[0] = chr(ord(n[0]) - 32)
p = ''.join((str(x) for x in n))
print(p)


s = input()
n = len(s)
fst = s[0]
fst = fst.upper()
fst = fst + s[1:n]
print(fst)


t = input()
g = t[0].upper()
v = t.replace(t[0], g, 1)
print(v)


userInput = input('')
newString = ''
newString = userInput[0].upper() + userInput[1:]
print(newString)


import sys
s = list(sys.stdin.readline())
s[0] = s[0].upper()
print(''.join(s))


strng = input()
newstrng = strng[0].capitalize() + strng[1:]
print(newstrng)


a = [chr(i) for i in range(ord('A'), ord('Z') + 1)]
b = input()
if b[0] not in a:
	print(b[0].upper() + b[1:])
else:
	print(b)


input_string = input()
print(input_string[0].upper() + input_string[1:])


s = input()
if s[0].isupper():
	print(s)
elif s[0].islower():
	s = list(s)
	s[0] = s[0].upper()
	s = ''.join(s)
	print(s)


x = list(input())
if 97 <= ord(x[0]) <= 125:
	x[0] = chr(ord(x[0]) - 32)
s = ''
i = 0
while i < len(x):
	s = s + x[i]
	i = i + 1
print(s)


string = input()
novi_string = string.capitalize()
rj = novi_string[0] + string[1:]
print(rj)


x = input()
y = x
if ord(x[0]) >= 97 and ord(x[0]) <= 122:
	y = chr(ord(x[0]) - 32)
	for i in range(1, len(x)):
		y += x[i]
print(y)


def main():
	word = list(input().strip())
	if not word[0].isupper():
		word[0] = word[0].upper()
	print(''.join(word))
main()


n = str(input())
a = n[0]
b = len(n)
d = n[1:b]
e = a.upper()
f = e + d
print(f)


string1 = input()
print(string1[0].title(), end='')
print(string1[1:len(string1)])


val = list(input())
tmp = val[0]
val.remove(val[0])
print(tmp.upper() + ''.join(val))


a = list(input())
c = ''
if ord(a[0]) >= 97:
	a[0] = chr(ord(a[0]) - 32)
for i in range(len(a)):
	c = c + a[i]
print(c)


word = input()
word2 = word[0].capitalize() + word[1:]
print(word2)


a = list(input())
b = a[0].upper()
c = []
for i in range(1, len(a)):
	c.append(a[i])
d = ''.join(c)
e = (b, d)
f = ''.join(e)
print(f)


s = input()
first = chr(ord(s[0].lower()) + ord('A') - ord('a'))
print(first + s[1:])


string = input()
length = len(string)
print(string[0].capitalize() + string[1:length])


riječ = input()
riječ_bez_prvog = riječ[1:]
nova_riječ = riječ[0].lower().upper() + riječ_bez_prvog
print(nova_riječ)


s = [c.upper() if idx == 0 else c for (idx, c) in enumerate(input())]
print(''.join(s))


chars = str(input())
print(chars[0].upper() + chars[1:])


name = input()
name2 = name.capitalize()
print(name2[:1] + name[1:])


s = input()
if 'Z' >= s[0] >= 'A':
	print(s)
else:
	s = list(s)
	s[0] = chr(ord(s[0]) - 32)
	for i in s:
		print(i, end='')


uncapped_word = input()
capped_word = uncapped_word[0].upper() + uncapped_word[1:]
print(capped_word)


word = input()
first_letter = word[0]
updated_word = first_letter.capitalize() + word[1:]
print(updated_word)


a = input()
b = a[0]
c = b.upper()
x = a.replace(b, '', 1)
d = c + x
print(d)


old_string = input()
string_list = list(old_string)
string_list[0] = string_list[0].capitalize()
new_string = ''.join(string_list)
print(new_string)


from typing import List, Any

def _read_row(sep=' ', converters=None) -> List[Any]:
	if not converters:
		converters = [str]
	return list(map(lambda x: converters[x[0] % len(converters)](x[1]), enumerate(input().split(sep=sep))))

def _read_matrix(rows_count=1, sep=' ', converters=None) -> List[List[Any]]:
	if not converters:
		converters = [[str]]
	matrix = []
	for i in range(0, rows_count):
		matrix.append(_read_row(sep=sep, converters=converters[i % len(converters)]))
	return matrix

def _find_element_in_row(row, element):
	for j in range(0, len(row)):
		if row[j] == element:
			return j
	return None

def _find_element_in_matrix(matrix, element):
	for i in range(0, len(matrix)):
		row = matrix[i]
		j = _find_element_in_row(row, element)
		if j is not None:
			return (i, j)
	return None

def main():
	s = input()
	return s[0].upper() + s[1:]
print(main())


from sys import stdin, stdout
line = stdin.readline().strip()
stdout.write(line[0].upper() + line[1:])
stdout.write('\n')


x = input()
y = x[0].upper()
i = 0
print(y, end='')
for i in range(len(x)):
	if i != len(x) - 1:
		print(x[i + 1], end='')
	i += 1


word = input()
first = word[0]
if first == word[0].upper():
	print(word)
else:
	print(word[0].upper() + word[1:len(word)])


import sys
S = list(sys.stdin.readline())
S[0] = S[0].upper()
print(''.join(S))


my_str = input()
if len(my_str) > 0 and my_str[0].islower():
	print(my_str[0].upper() + my_str[1:])
else:
	print(my_str)


w = input()
l = w[0].upper()
if len(w) == 1:
	print(l)
else:
	print(l + w[1:len(w)])


cadena = input()
primer = cadena[0:1].capitalize()
subcad = cadena[1:]
print(primer + subcad)


s = str(input())
a = s[0].upper()
print(a, s[1:], sep='')


import string
allLetters = string.ascii_uppercase
vowels = ['A', 'E', 'I', 'O', 'U']
consonants = [ch for ch in allLetters if ch not in vowels]
mi = input()
if mi[0] in consonants:
	print(mi)
else:
	print(mi[0].upper() + mi[1:])


s = input()
l = s[0]
sa = ord(l)
if ord(l) >= 97:
	sa = ord(l) - 32
print(chr(sa) + s[1:])


q = input()
a = q[0]
if ord(a) > 91:
	a = chr(ord(a) - 32)
else:
	a = a
b = a
i = 1
for num in range(1, len(q)):
	b = b + q[i]
	i = i + 1
print(b)


prompt = input()
print(prompt[0].capitalize() + prompt[1:])


s = input()
if ord(s[0]) >= 65 and ord(s[0]) <= 90:
	print(s)
else:
	print(chr(ord(s[0]) - 32), s[1:len(s):1], sep='')


def main():
	str = input()
	print(str[0].upper() + str[1:])
main()


s = str(input())
t = s[:1].upper()
u = s[1:]
print(t + u)


s = input().strip()
if s[0].isupper():
	print(s)
else:
	b = s[0].swapcase()
	print(b + s[1:])


s = [j for j in input()]
if s[0] == s[0].upper():
	pass
else:
	s[0] = s[0].upper()
print(''.join(s))


text = list(input())
first = str(text[0]).upper()
text[0] = first
newtext = ''.join(text)
print(newtext)


x = input('')
y = x[0].upper()
count = 1
for count in range(len(x) - 1):
	y = y + x[count + 1]
print(y)


s = input()
w = s[1:]
s = s[0].upper()
p = str(s) + str(w)
print(p)


b = input()

def split(a):
	return list(a)
a = b
c = split(a)
c[0] = c[0].upper()
d = ''
d = d.join(c)
print(d)


input_word = input()
result = input_word[0].upper()
if len(input_word) > 1:
	result += input_word[1:]
print(result)


n = input()
t = list(n)
s = ''
for i in range(len(t)):
	if i == 0:
		j = t[i].upper()
		s = s + j
	else:
		s = s + t[i]
print(s)


w = input()
ww = list(w)
f = str.upper(w[0])
s = list(f)
for x in range(1, len(w)):
	s.append(ww[x])
y = ''.join(s)
print(y)


str_input = str(input())
letter = str_input[:1]
letter = letter.upper()
print(letter + str_input[1:])


word = input()
first_letter = word[0]
if first_letter.isupper() == True:
	print(word)
else:
	print(word[0].upper() + word[1:])


word = input().lstrip().rstrip()
print(word[0].upper() + word[1:])


a = list(map(str, input('')))
i = 0
while i < len(a):
	b = a[0]
	c = b.upper()
	a[0] = c
	i += 1
j = 0
while j < len(a):
	print(a[j], end='')
	j += 1


a = input()
print(a[:1].upper(), end='')
print(a[1:], end='')


import math, string, itertools, fractions, heapq, collections, re, array, bisect, sys, random, time, copy, functools
sys.setrecursionlimit(10 ** 7)
inf = 10 ** 20
eps = 1.0 / 10 ** 10
mod = 10 ** 9 + 7
dd = [(-1, 0), (0, 1), (1, 0), (0, -1)]
ddn = [(-1, 0), (-1, 1), (0, 1), (1, 1), (1, 0), (1, -1), (0, -1), (-1, -1)]

def LI():
	return [int(x) for x in sys.stdin.readline().split()]

def LI_():
	return [int(x) - 1 for x in sys.stdin.readline().split()]

def LF():
	return [float(x) for x in sys.stdin.readline().split()]

def LS():
	return sys.stdin.readline().split()

def I():
	return int(sys.stdin.readline())

def F():
	return float(sys.stdin.readline())

def S():
	return input()

def pf(s):
	return print(s, flush=True)

def main():
	s = S()
	return s[:1].upper() + s[1:]
print(main())


line = input()
s = len(line)
a = str(line[0]).title()
if s == 1:
	print(a)
else:
	print('%s' % a, end='')
	for i in range(1, s):
		print('%s' % line[i], end='')


a = input()
sam = 'abcdefghijklmnopqrstuvwxyz'
cap = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
if a[0] in cap:
	a = a
else:
	b = sam.find(a[0])
	a = cap[b] + a[1:]
print(a)


inStr = input()
first = inStr[0]
if first != first.upper():
	inStr = first.upper() + inStr[1:]
print(inStr)


s = input()
t = s[0]
f = t.upper()
s = f + s[1:len(s)]
print(s)


word = input()
new_word = []
for i in range(len(word)):
	if i == 0:
		new_word.append(word[i].upper())
		continue
	new_word.append(word[i])
new_word = ''.join(new_word)
print(new_word)


a = input()
cha = a[0].upper()
print(cha + a[1:])


from sys import stdin, stdout
s = list(stdin.readline().strip())
s[0] = s[0].upper()
r = ''.join((x for x in s))
print(r)


a = []
word = input()
for i in word:
	a.append(i)
b = a[0]
if 65 <= ord(b) <= 90:
	print(word)
else:
	a[0] = chr(ord(b) - 32)
	newword = ''.join(a)
	print(newword)


word = input()
word_list = []
for i in range(0, len(word)):
	word_list.append(word[i])
if word_list[0].isupper() == False:
	uppercase = word_list[0].upper()
	word_list[0] = uppercase
print(''.join(word_list))


a = input()
c = a[0]
d = ''
for j in range(1, len(a)):
	d += a[j]
c = c.capitalize()
print(c + d)


b = []
a = input()
c = a[0].upper()
b.append(c)
for i in range(1, len(a)):
	b.append(a[i])
print(''.join(b))


a = input()
l = len(a)
h = ord(a[0])
j = []
k = a[0]
if h in range(65, 91):
	print(a)
if h in range(95, 123):
	e = h - 32
	f = chr(e)
	j.append(f)
	i = 1
	while i < l:
		j.append(a[i])
		i = i + 1
	k = ''.join(j)
	print(k)


s = input()
q = s[0].capitalize() + s[1:]
print(q)


name = input()
first_letter = name[0]
first_letter = first_letter.upper()
final_str = first_letter + name[1:]
print(final_str)


strin = input()
change = strin[0].upper()
st = strin.replace(strin[0], change, 1)
print(st)


a = list(map(str, input()))
x = 'qwertyuiopasdfghjklzxcvbnm'
y = 'QWERTYUIOPASDFGHJKLZXCVBNM'
for i in range(26):
	if a[0] == x[i]:
		a[0] = y[i]
print(*a, sep='')


s = input()
j = s[0:1].upper()
c = list(s)
c.pop(0)
print(j, end='')
for i in range(len(c)):
	print(c[i], end='')


word = input('')
upperCaseWord = word.upper()
if upperCaseWord[0] == word[0]:
	print(word)
else:
	text = upperCaseWord[0] + word[1:]
	print(text)


n = input()
a = n[0]
b = n[1:]
import string
a = string.capwords(a)
print(a, b, sep='')


s = str(input())
li = list(s)
li.pop(0)
if s[0] >= chr(65) and s[0] <= chr(90):
	c = ord(s[0])
elif s[0] >= chr(97) and s[0] <= chr(122):
	c = ord(s[0]) - 32
li.insert(0, chr(c))
print(''.join(li))


letters = input()
if letters[0].islower():
	print(letters[0].upper() + letters[1:len(letters)])
else:
	print(letters)


a = str(input().strip())
i = 1
b = ''
while i < len(a):
	b += a[i]
	i += 1
c = a[0].upper() + b
print(c)


import sys

def main():
	for s in sys.stdin:
		sys.stdout.write(s[:1].upper() + s[1:])
		return
main()


a = input()
if ord(a[0]) >= 97:
	print(chr(ord(a[0]) - 32), a[1:], sep='')
else:
	print(a)


m = input()
new = ''
w = list(m)
w[0] = w[0].upper()
for x in w:
	new += x
print(new)


lines = input()
lines1 = [i for i in lines]
print(lines1[0].upper() + ''.join(lines1[1:]))


M = list(input())
M[0] = M[0].upper()
print(*M, sep='')


s = input()
list = []
a = ''
for i in s:
	list.append(i)
list.insert(0, list[0].upper())
list.remove(list[1])
for k in list:
	a += k
print(a)


lower = list(map(chr, range(97, 123)))
upper = list(map(chr, range(65, 91)))
string = input()
lower_index = 0
for i in range(len(lower)):
	if len(string) == 1 and string[0] == lower[i] or string[0] == upper[i]:
		lower_index = i
	if string[0] == lower[i]:
		lower_index = i
newString = upper[lower_index] + string[1:]
print(newString)


st = input('')
if len(st) > 0 and st[0].islower():
	print(st[0].upper() + st[1:])
else:
	print(st)


str = input()
newstr = str[0].upper() + str[1:]
print(newstr)


a = input()
if ord(a[0]) > 91:
	a = chr(ord(a[0]) - 32) + a[1:]
print(a)


def Main():
	s = input()
	s = s[0].upper() + s[1:]
	print(s)
Main()


a = input()
if a[0] == a[0].lower():
	b = ord(a[0]) - 32
	c = chr(b)
	print(c + a[1:])
else:
	print(a)


s = list(input())
if ord(s[0]) > 96:
	print('{}{}'.format(chr(ord(s[0]) - 32), ''.join(s[1:])))
else:
	print(''.join(s))


strg = str(input())
print(strg[0].upper() + strg[1:])


import sys

def capitalizeWord(word):
	return word[0].upper() + word[1:]
base_string = input().strip()
result = capitalizeWord(base_string)
print(result)


s = input()
p = ord(s[0])
if 97 <= p <= 122:
	p -= 32
	s = chr(p) + s[1:]
print(s)


s1 = input()
m = s1[0].capitalize()
print(m + s1[1:])


s = input()
if 'a' <= s[0] <= 'z':
	print(chr(ord(s[0]) - 32), end='')
else:
	print(s[0], end='')
print(s[1:])


import sys
lines = sys.stdin.readlines()
import string
lower = string.ascii_lowercase[:26]
upper = string.ascii_uppercase[:26]
k = 0
test_set = []
for character in lines[0]:
	test_set += [character]
while k < 25 and test_set[0] != lower[k]:
	k += 1
if k == 0 and test_set[0] == 'a':
	test_set[0] = 'A'
elif k != 0:
	if k != 25:
		test_set[0] = upper[k]
	elif test_set[0] == 'z':
		test_set[0] = 'Z'
answer = ''
for item in test_set:
	answer += item
print(answer)


string = input()
first = string[0]
if first.isupper():
	print(string)
else:
	new_string = chr(ord(first) - 32) + string[1:]
	print(new_string)


q = input()
f = q[:1]
rest = q[1:]
f = f.upper()
ans = f + rest
print(ans)


word = input()
if 'a' <= word[0] <= 'z':
	print(word[0].upper() + word[1:])
elif 'A' <= word[0] <= 'Z':
	print(word)


string = input()
string_L = list(string)
string1 = str.upper(string_L[0])
del string_L[0]
outcome = ''.join(string_L)
print(string1 + outcome)


wrd = input()
cpt = wrd[0]
print(cpt.capitalize() + wrd[1:])


s = input()
n = len(s)
a = []
if ord(s[0]) < 97:
	for i in range(n):
		a.append(s[i])
else:
	a.append(chr(ord(s[0]) - 32))
	for i in range(1, n):
		a.append(s[i])
print(''.join(a))


in_word = input()
print(in_word[0].upper() + in_word[1:])


lst1 = list(input())
lst1.insert(0, lst1.pop(0).capitalize())
str1 = ''.join(lst1)
print(str1)


A = str(input())
B = A[0]
B = B.capitalize()
a = ['' for i in range(len(A))]
a[0] = B
for i in range(1, len(A)):
	a[i] = A[i]
str1 = ''.join(a)
print(str1)


import math as mt
import sys, string
from collections import Counter, defaultdict
input = sys.stdin.readline
I = lambda : int(input())
M = lambda : map(int, input().split())
ARR = lambda : list(map(int, input().split()))

def main():
	s = list(input())
	s[0] = s[0].upper()
	print(''.join(s))
main()


word = input()
head = word[:1]
tail = word[1:]
print('', head.upper() + tail, sep='')


a = list(str(input()))
if 97 <= ord(a[0]) <= 97 + 25:
	a[0] = chr(ord(a[0]) - 32)
b = ''.join(a)
print(b)


word = str(input())
s = word[0]
c = s.upper()
print(word.replace(s, c, 1))


string = input()
s = string[0:1]
x = s.capitalize()
print(x + string[1:])


a = input()
b = []
b.append(a[0].upper())
print(b[0] + a[1:])


palabra = str(input())
c = palabra[0]
c = c.upper()
dem = palabra[1:len(palabra)]
print(c + dem)


n = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
name = input()
if name[0] not in n:
	k = name[0].capitalize()
	name = k + name[1:]
	print(name)
else:
	print(name)


x = input()
s = x.upper()
answ = s[0] + x[1:]
print(answ)


a = input()
a = list(a)
a[0] = a[0].capitalize()
t = ''
for x in a:
	t = t + x
print(t)


word = input()
new_word = []
for i in range(len(word)):
	new_word.append(word[i])
new_word[0] = new_word[0].upper()
word = ''
for i in new_word:
	word += i
print(word)


s = input()
ns = s[0].upper()
for i in range(len(s)):
	if i == 0:
		continue
	else:
		ns = ns + s[i]
print(ns)


def solve():
	s = input()
	print(s[0].upper() + s[1:])

def main():
	t = 1
	for _ in range(t):
		solve()
main()


ss = input()
a = ss[0]
b = ss[1:]
if a in 'qwertyuiopasdfghjklzxcvbnm':
	t = ord(a) - 32
	a = chr(t)
print(a + b)


n = input()
a = ''
if n[0] == n[0].lower():
	a = a + n[0].upper()
	s1 = a + n[1:]
else:
	s1 = n[:]
print(s1)


n = list(input())
a = n[0]
b = a.title()
n[0] = b
print(''.join(n))


s1 = input()
if s1[0].isupper():
	print(s1)
else:
	s1 = s1.replace(s1[0], s1[0].upper(), 1)
	print(s1)


word = input()
for i in range(1, len(word) - 1):
	new = word[0].upper() + word[1:]
if len(word) == 1:
	new = word.upper()
elif len(word) == 2:
	new = word[0].upper() + word[1]
print(new)


k = input()
print(k[0].upper(), end='')
for i in range(1, len(k)):
	print(k[i], end='')


s = input()
if not s[0].isupper():
	print(s[0].swapcase() + s[1:])
else:
	print(s)


word = input()
first = word[0].capitalize()
print(first + word[1:])


word = input()
if word[0].islower() is True:
	word = word[0].upper() + word[1:]
	print(word)
else:
	print(word)


n = list(input())
x = ord(n[0])
if x >= 97:
	n[0] = chr(x - 32)
	print(''.join(n))
else:
	print(''.join(n))


from string import *
string1 = input('')
string2 = string1[1:]
string1 = string1[0].capitalize()
print(string1 + string2)


n = input()
l = [item for item in n]
l[0] = l[0].upper()
print(''.join(l))


word = input()
print(word.replace(word[0], word[0].capitalize(), 1))


n = input()
output = ''
for i in range(len(n)):
	if i == 0:
		output += str(n[i]).upper()
	else:
		output += str(n[i])
print(output)


word = str(input())
word = word[:1].upper() + word[1:]
print(word)


import sys
word = str(input())
one = word[0]
word = word[1:]
one = one.upper()
word = one + word
print(word)


s = input()
t = s[0]
ans = ''
ans = ans + t.upper() + s[1:len(s)]
print(ans)


def cp(s):
	return s[0].upper() + s[1:]
print(cp(input()))


number = str(input())
num = number[1:]
new = number[0].upper()
new = str(new)
num = str(num)
print(new + num)


word = list(input())
x = []
x.append(word[0])
X = ''.join(x)
if X != X.upper():
	del word[0]
	word.insert(0, X.upper())
print(''.join(word))


def cap(word):
	length = len(word)
	word = word[0].upper() + word[1:length]
	print(word)
word = input()
cap(word)


n = input()
l = ''
l = n[0]
l = l.upper()
s = n[1:len(n)]
l = l + s
print(l)


def ans(w):
	temp = w[0].upper() + w[1:]
	return temp
w = input()
print(ans(w))


s = input()
sl = list(s)
sl[0] = sl[0].upper()
s2 = ''.join(sl)
print(s2)


from sys import stdin

def cap_first(word):
	return word[0].upper() + word[1:]
print(cap_first(stdin.readline()))


import string
a = input()
b = string.capwords(a)
result = a[1:len(a)]
print(a[0].capitalize() + result)


import string

def main():
	word = input()
	print(word[0].upper() + word[1:])
main()


import string
str = input('')
if str[0] > 'Z':
	print(str[0].upper() + str[1:])
else:
	print(str)


n = input()
q = n.upper()
arr = q[0] + n[1:]
print(arr)


a = [x for x in input()]
a[0] = a[0].upper()
output = ''
for i in range(len(a)):
	output += a[i]
print(output)


str1 = input()
str1 = list(str1)
str1[0] = str1[0].capitalize()
s = ''
for i in range(len(str1)):
	s = s + str1[i]
print(s)


s = input()
part = s[0].upper()
result = s[1:len(s)]
print(part + result)


st1 = input()
st2 = st1
st1 = str.capitalize(st1)
print(st1[0], end='')
for i in range(len(st1) - 1):
	print(st2[i + 1], end='')


line = list(input())
ans = ''
for i in range(len(line)):
	if i == 0:
		if ord(line[i]) >= 97:
			temp = ord(line[i]) - 97
			line[i] = chr(65 + temp)
	ans += line[i]
print(ans)


__author__ = 'sanu001'
import queue
__read_tokens = queue.Queue()

def next_string():
	while __read_tokens.empty():
		for i in input().split():
			__read_tokens.put(i)
	return __read_tokens.get()

def next_int():
	return int(next_string())

def next_float():
	return float(next_string())

def next_line():
	if not __read_tokens.empty():
		raise Exception('Unclean token cache')
	return input()
s = next_string()
k_chr = s[0]
k_int = ord(k_chr)
ss = s
if k_int >= ord('a'):
	ss = s[1:]
	k_int = k_int + ord('A') - ord('a')
	ss = chr(k_int) + ss
print(ss)


a = input()
b = ord(a[0])
c = len(a)
d = -c
result = ''
if b >= 97:
	b = b - 32
	while d < -1:
		d = d + 1
		result = result + a[d]
	print(chr(b) + str(result))
else:
	print(a)


n = input()
m = len(n)
n0 = n[0].upper()
n = n[1:m]
n = n0 + n
print(n)


s1 = input()
if 'A' <= s1[0] <= 'Z':
	print(s1)
else:
	print(chr(ord(s1[0]) + ord('A') - ord('a')), s1[1:], sep='')


n = str(input())
y = n[0].upper()
n = n[1:len(n) + 1]
x = y + n
print(x)


n = input()
x = n[0]
y = n[1:]
if x.islower():
	q = x.upper()
	str = q + y
	print(str)
else:
	print(n)


str = input()
nstr = str[0].upper() + str[1:]
print(nstr)


a = input()
if ord(a[0]) >= 65 and ord(a[0]) <= 90:
	print(a)
else:
	p = a[0].upper()
	print(p + a[1:])


str1 = input()
str1 = str1[0:1].upper() + str1[1:len(str1)]
print(str1)


s = input()
x = s[0].isupper()
if x == True:
	print(s)
else:
	f = s[0].upper()
	print(f + s[1:])


word = input()
a = word[0]
A = a.capitalize()
print(A + word[1:])


name = input()
if len(name) <= 1000:
	first_cap = name[0].upper()
	rem_str = name[1:]
	print(first_cap + rem_str)


import string
capital_name = input()
result = str(string.capwords(capital_name[0])) + capital_name[1:]
print(result)


st = input()
x = list(st)
x[0] = x[0].upper()
st = ''
for i in x:
	st = st + i
print(st)


lines = input()
print(lines[0].upper() + lines[1:])


n = input('')
a = n[0].upper()
print(f'{a}{n[1:len(n)]}')


n = input()
x = list()
for i in range(len(n)):
	x.append(n[i])
for i in range(len(x)):
	if x[i].isupper() == True:
		break
	elif x[i].islower() == True:
		x[i] = x[i].upper()
		break
print(''.join(x))


answer = input()
index = len(answer)
answer_ha = answer[0:1]
answer_ha = answer_ha.upper()
n = index - 1
answer_ch = answer[1:index]
answer_fan = answer_ha + answer_ch
print(answer_fan)


s = input()
c = ''
for i in range(len(s)):
	if i == 0:
		c = c + s[i].upper()
	break
c = c + s[1:]
print(c)


s = list(input())
if s[0] == s[0].upper():
	print(*s, sep='')
else:
	s[0] = s[0].upper()
	print(*s, sep='')


a = input()
a = a.replace('', '*', 2).replace('*', '', 1)
a = a.split('*')
a[0] = a[0].upper()
print(''.join(a))


word_str = input()
word_list = list(word_str)
word_list[0] = word_list[0].upper()
print(''.join(word_list))


s = str(input())
c1 = s[0].upper()
c2 = s[1:]
c = c1 + c2
print(c)


n = input()
print('{}{}'.format(n[0].upper(), n[1:]))


a = input()
x = a[0]
print(x.capitalize(), end='')
print(a[1:len(a)])


li = list(input())
if 'a' <= li[0] <= 'z':
	li[0] = li[0].upper()
print(''.join(li))


b = [str(i[0].upper() + i[1:]) for i in input().split()]
st = ' '.join(b)
print(st)


w = input()
bl = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
sl = 'abcdefghijklmnopqrstuvwxyz'
for i in range(0, 26):
	if w[0] == sl[i]:
		print(bl[i] + w[1:len(w)])
		break
	if w[0] == bl[i]:
		print(w)
		break


STR = input()
for i in range(len(STR)):
	if STR[0] >= 'a' and STR[0] <= 'z':
		x = ord(STR[0]) - 32
		STR = chr(x) + STR[1:]
print(''.join(STR))


s = str(input())
s1 = ''
n = len(s)
s2 = s.upper()
s1 = s2[0]
print(s1 + s[1:n])


def capitalise(s):
	if s[:1].lower():
		print(s[:1].upper() + s[1:])
capitalise(input())


a = input()
b = list(a)
x = b[0]
y = x.capitalize()
if x != y:
	c = a.replace(x, y, 1)
else:
	c = a
print(c)


word = input()
n = len(word)
r = []
for i in range(n):
	if i == 0:
		r.append(word[i].upper())
	else:
		r.append(word[i])
print(''.join(r))


class Solution281A:

	def __init__(self):
		self.result = ''

	def parse_input(self):
		self.result = input()

	def solve(self):
		self.result = self.result[0].upper() + self.result[1:]

	def get_result(self):
		return self.result
solution = Solution281A()
solution.parse_input()
solution.solve()
print(solution.get_result())


a = input()
s = a[0]
k = a.replace(s, s.upper(), 1)
print(k)


s = str(input())
list1 = list(s)
list1[0] = list1[0].upper()
str1 = ''
print(str1.join(list1))


s = list(input())
s[0] = s[0].upper()
output = ''
for char in s:
	output += char
print(output)


import math
s = input()
s1 = s[0:1]
s2 = s[1:]
s = s1.upper() + s2
print(s)


s = input()
l = []
for i in range(len(s)):
	l.append(s[i])
l[0] = l[0].upper()
ans = ''.join(l)
print(ans)


n = list(input())
if not n[0].isupper():
	x = n[0].upper()
	n[0] = x
	print(''.join(n))
else:
	print(''.join(n))


texto = input('')
n = texto[0].upper()
p = len(texto)
for i in range(1, p):
	n = n + texto[i]
print(n)


str1 = input()
b = str1[:1]
b = b.upper()
print(''.join(b + str1[1:len(str1)]))


n = input()
print(n[:1].upper() + n[1:]) if n[:1].isupper() is False else print(n)


S = input()
if 97 <= ord(S[0]):
	S = chr(ord(S[0]) - 32) + S[1:]
print(S)


s = input()
m = str()
m = s[1:]
n = s[0]
n = n.upper()
print(n + m)


import sys
import math
s = input()
print(s[0].upper() + s[1:len(s)])


from sys import stdin
string = stdin.readline()
ans = string[0].upper() + string[1:]
print(ans)


s = input()
if s[0] >= 'a':
	s = chr(ord(s[0]) - 32) + s[1:]
print(s)


x = input()
lst = []
for i in x:
	lst.append(i)
if lst[0].islower():
	s = lst[0].upper()
	lst.remove(lst[0])
	lst.insert(0, s)
for j in range(len(lst)):
	print(lst[j], end='')


b = input().split()
c = list(''.join(b))
c[0] = c[0].upper()
d = ''.join(c)
print(d)


string = input()
try:
	string = string[0].upper() + string[1:]
except IndexError:
	string = string[0].upper()
print(string)


s = input()
if ord(s[0]) > 96:
	n = 26 - (122 - ord(s[0]))
	sub = chr(64 + n)
	sub += s[1:]
	print(sub)
else:
	print(s)


s = input()
temp = ord(s[0])
if 97 <= temp <= 122:
	s = list(s)
	s.pop(0)
	print(chr(temp - 32) + ''.join(s))
else:
	print(s)


s = input()
res = ''
for (index, char) in enumerate(s):
	if ord(char) >= 97 and index == 0:
		res += char.upper()
	else:
		res += char
print(res)


x = input()
listForm = list(x)
listForm[0] = listForm[0].upper()
final = ''.join(listForm)
print(final)


s = input()
if s[0] == s[0].lower():
	print(s[0].capitalize() + s[1:])
else:
	print(s)


m = input()
output = ''
if len(m) <= 1000:
	output = m[0].upper() + m[1:]
print(output)


def cap(str):
	firstChar = str[0].upper()
	l = len(str)
	allexOne = str[1:l]
	return firstChar + allexOne
x = input()
print(cap(x))


name = str(input())
print(name[0].upper() + name[1:])


world = input()
print(world[0].upper() + world[1:])


a = str(input())
if a.istitle() == False:
	s = a[0]
	s = s.upper()
	s = s + a[1:len(a):1]
	print(s)
else:
	print(a)


pal = str(input())
pala = pal[0].capitalize() + pal[1:]
print(pala)


ln = input()
print(ln[0].upper() + ln[1:])


y = input('')
g = ''
for l in range(len(y)):
	if l == 0:
		g += y[l].upper()
	else:
		g += y[l]
print(g)


word = list(input())
word[0] = word[0].upper()
fin = ''
for i in word:
	fin += i
print(fin)


s = list(input())
s[0] = s[0].upper()
st = ''
for x in s:
	st += x
print(st)


a = input()
if len(a) == 1:
	print(a.capitalize())
else:
	b = a[0]
	b = b.capitalize()
	c = a[-(len(a) - 1):]
	print(b + c)


line = input()
if line[0] == line[0].lower():
	line = line[0].upper() + line[1:]
print(line)


word = input()
print('{}{}'.format(word[0].capitalize(), word[1:]))


a = list(input())
if a[0].isupper():
	print(*a, sep='')
else:
	a[0] = a[0].upper()
	print(*a, sep='')


s = input()
if ord(s[0]) >= 65 and ord(s[0]) <= 90:
	print(s)
else:
	ans = ''
	ans = ans + s[0].upper()
	ans = ans + s[1:len(s)]
	print(ans)


s = input()
if s[0] in 'ABCDEFGHIJKLMNOPQRSTUVWXYZ':
	print(s)
else:
	print(s[0].upper(), sep='', end='')
	for i in range(1, len(s)):
		print(s[i], sep='', end='')


q = input()
e = q[0].upper() + q[1:]
print(e)


str = input()
if ord(str[0]) >= ord('a') and ord(str[0]) <= ord('z'):
	str = chr(ord(str[0]) - 32) + str[1:]
print(str)


a = input()
b = a[0]
c = b.title()
d = c + a[1:]
print(d)


li = list(input())
L = len(li)
lis = li[0].capitalize()
print(f"{lis}{''.join(li[1:L])}")


s1 = 'qwertyuiopasdfghjklzxcvbnm'
s2 = 'QWERTYUIOPASDFGHJKLZXCVBNM'
s = input()
if s[0] in s1:
	s = s2[s1.find(s[0])] + s[1:]
print(s)


def main():
	word = input()
	for i in range(len(word)):
		if i == 0:
			print(word[0].capitalize(), end='')
		else:
			if i + 1 == len(word):
				print(word[i])
				break
			print(word[i], end='')
main()


t = input()
c = ''.join(t[0].upper())
c = c + t[1:]
print(c)


s = input()
if ord(s[0]) >= 97 and ord(s[0]) <= 122:
	print(s.replace(s[0], s[0].upper(), 1))
else:
	print(s)


def main():
	w = input()
	print(w[0].capitalize() + w[1:])
main()


s = input()
n = len(s)
if ord(s[0]) >= 65 and ord(s[0]) <= 90:
	print(s)
else:
	print(chr(ord(s[0]) - 97 + 65) + s[1:])


def klei(A):
	sum = ''
	for i in range(len(A)):
		sum += A[i]
	return sum
S = str(input())
if 97 <= ord(S[0]) <= 122:
	A = list(S)
	A[0] = chr(ord(A[0]) - 32)
	K = klei(A)
	print(K)
else:
	print(S)


string = list(input())
string[0] = string[0].upper()
print(''.join((str(e) for e in string)))


import sys
input = sys.stdin.readline

def insr():
	s = input()
	return list(s[:len(s) - 1])
s = insr()
s[0] = s[0].capitalize()
print(''.join(s))


def capitalize():
	i = input()
	lst = [word[0].upper() + word[1:] for word in i.split()]
	print(' '.join(lst))

def main():
	capitalize()
main()


s = input()
print(str(s[0].capitalize()) + str(s[1:len(s)]), sep='')