The first is problematical, since 'ways' (very casual) may be an adjective or a noun (I can't identify it confidently, but to me 'ways' means 'distance', making it a noun, 'a' an article and 'little' an adjective). The second is certainly an adverbial phrase modifying the adjective 'sad'.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.