import java.util.*; public class Main{ public static void main(String[] args){ int[] array = new int[]{1,2,3,3,3,3,4}; Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] res = minAndmax(array,n); System.out.println(res[0]+","+res[1...