import java.util.Scanner; public class Main { final static float RATE = 12.0f/1000; public static void main(String[] args) { try (Scanner scan = new Scanner(System.in)) { int N = scan.nextInt(); int sum = 0, rem = 0; for(int i=0; i= S.length()) { sum += S.length(); } else { sum += num; rem += S.length()-num; } } System.out.println(sum + " " + rem); } } }