#coding:utf-8 lamp = 55 get = input() get = get.split(" ") for x in range(0,9): rot = int(get[x]) rot += rot print(abs(lamp - rot))