module global_variables
end module global_variables
program main
  use global_variables
  implicit none
  integer i
  integer a(3)
  character(3) s
  read *, s
!  print '(a)', s
  do i=1,3
    read(s(i:i),*) a(i)
  enddo
  print '(i0)', sum(a)
end program main
