static void Main(string[] args)
using (StreamReader sr = File.OpenText(args[0]))
string line = sr.ReadLine();
string[] cipher = line.Split(' ');
char[] text = cipher[0].ToCharArray();
for (int i = 0; i < cipher[0].Length; i++)
if (cipher[1][i] == '1' && (int)text[i] > 96)
text[i] = (char)((int)text[i] - 32);
Console.WriteLine(new string(text));