import java.io.*; public class No_9001{ public static void main(String args[]){ try{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String sNumber = br.readLine(); String str = br.readLine(); String[] sNum = sNumber.split(" "); String[] stLength = str.split(""); int[] number = new int[sNum.length]; int sum = 0; for(int i = 0; i < sNum.length; i++){ number[i] = Integer.parseInt(sNum[i]); sum += number[i]; } if((1 <= number[0] && number[0] <= 1000) &&(1 <= number[1] && number[1] <= 1000) &&stLength.length <= 10){ System.out.print(sum + " " + str + System.lineSeparator()); } }catch(IOException e){} } }