The first line of the input is a string (between 1 and 50 characters long, inclusive). Each character will be a letter of English alphabet, lowercase or uppercase.

The second line of the input is an integer between 0 and 26, inclusive.
#include<iostream>
#include<cstring>
using namespace std;

int main()
{
	string a;
	int n;
	cin>>a>>n;
	for(int i = 0; i<a.length(); i++)
	{
		if(a[i]>='A'&&a[i]<='Z')
		{
			a[i] = a[i]-'A'+'a';
		}
	}
	for(int i = 0; i<a.length(); i++)
	{
		if(a[i]<'a'+n)
		{
			a[i] = a[i]-'a'+'A';
		}
	}
	cout<<a;
}//mzjmyh