import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner in = new Scanner(System.in); int weekday = 0; String days = in.nextLine(); days += in.nextLine(); for(int i=0, current=0; i