#26697: tsai is idiot


91xb30@ms.mingdao.edu.tw (X102 30黃冠穎)

School : No School
ID : 129581
IP address : [36.232.138.100]
Last Login :
2021-08-25 11:07:21
c290. APCS 2017-0304-1秘密差 -- 2017年3月APCS | From: [36.232.141.249] | Post Date : 2021-08-20 21:51

x=list(input())

t=sum(list(map(int,[x[i] for i in range(0,len(x),2)])))-sum(list(map(int,[x[i] for i in range(1,len(x),2)])))

print(abs(t))

 
ZeroJudge Forum