program Main integer N read *, N print *, N * (N+1) / 2 end program Main