there popular keyboard layout Berland differ letter position all key in Berland use alphabet 26 letter coincide English alphabetyou give string consist 26 distinct letter key second layout order you give text consist small capital english letter digit it know type layout writer intend type second layout print text key press second layoutsince key letter layout capitalization letter remain character