This should be:

```fortran
end program main
```

But even fixing that, I'm getting a lot of compiler errors (mainly type errors with things that should be integers being declared as reals or complex data types, it looks like).