import java.io.IOException; import java.util.NoSuchElementException; public class Main{ public static void main(String[] args){ FastScanner sc = new FastScanner(); int A = sc.nextInt()+1; int B = sc.nextInt(); int ans = 0; for(int i=23;i<=25;i++){ if(i