program main
    implicit none
    integer::i,j,k
    integer:: n,m
    integer(8),allocatable:: a(:), dp(:), ndp(:)

    read*, n,m
    allocate(a(n))
    read*, a(1:n)
    allocate(dp(sum(a)), ndp(sum(a)))

    

    
end program