A college awarded 38 medals in football, 15 in basketball and 20 in cricket. If these medals went to a total of 58 men and only three men got medals in all the three sports. Then the number of students who received medals in exactly two of the three sports, is