declare r to be an int