'''
    Author: Khyathi C
    Date: 2-8-18
'''
def main():
    ''' This code is used to print sum of two numbers '''
    data = input()
    print(int(data[0])+int(data[3]))

if __name__ == "__main__":
    main()
