gives ratio of four integers