#include #define min(a1,a2) (a1==a2?-1:a1a2?a1:a2) int main() { char c[3]; scanf("%c %c %c",&c[0],&c[1],&c[2]); if(c[1]=='?') printf("14\n"); else if (c[1]=='2') printf("4\n"); else printf("1\n"); return 0; }