num = list(map(int,input().split())) res = 0 ans = 0 for i in num: res += i*i ans = res%10 print(ans)
μ λ ₯λ°μ μλ₯Ό λ°°μ΄λ‘ μ μ₯ν΄μ κ° λ°°μ΄μ μ κ³±μλ₯Ό ꡬνλ€. κ·Έ λ€μ 10μΌλ‘ λλ λλ¨Έμ§λ₯Ό ꡬν λ€, print!
π [λ°±μ€] 2475λ²: κ²μ¦μ - νμ΄μ¬