there are augmented chords too, with a sharp fifth.
but in general, you can figure out the root note of the key, and you can find the diminshed chord in the key. and the deminished part of the key is the only part where the fifth will be in a different place. any other place, the 5th will be...