/*
    解题思路:先做加法运算,得到的数转换为字符串,用substring截取
*/
import java.util.Scanner;
public class Main {
    
    public static void main(String[] args) {
        
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        long re = (long)a + (long)b;
        String str = String.valueOf(re);
        String result;
        if(str.charAt(str.length()-2) == '0') {
            result = str.substring(str.length()-1,str.length());
        } else {
            result = str.substring(str.length()-2,str.length());
        }
        System.out.println(result);
    }
}