package No150; import java.util.Scanner; public class Main { static final String GOOD_STRING = "good"; static final String PROBLEM_STRING = "problem"; static int mMinLengthOfGood = Integer.MAX_VALUE; static int mMinLengthOfProblem = Integer.MAX_VALUE; static int mAns = Integer.MAX_VALUE; public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); for(int i=0; i