Cheap hotels immediately around the train station won’t accept foreigners. The beach is a good place to stay in summer with many of the larger hotels accepting foreigners. Note that rooms in ordinary beach hotels go for hundreds a night during the peak season. When it's cold, you're better off staying closer to the train station near restaurants.