I am 4 digit number my hundreds digit is 5 less than my ones digit and my thousands digit is one half of my tens digit. What number am i?

3166?