/*#include <stdio.h>
#include <stdlib.h>
int main()
{
printf("Hello world!\n");
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if((a>b && a>c && a<b+c)||(b>c && b>a && b<a+c)||(c>a && c>b && c<a+b))
{
printf("yes");
}
else if(a==b && b==c && c==a)
{
printf("yes");
}
else if((a==b+c)||(b==a+c)||(c==a+b))
{
printf("no");
}
else
{
printf("no");
}
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
double a,b,c,d;
scanf("%lf %lf",&a,&b);
if(a<150){
c=a-100;
}
else if(a>=150 && a<160){
c=(a-150)/2+50;
}
else if(a>=160){
c=(a-100)*0.9;
}
d=(b-c)*100/c;
if(d<=10){
printf("정상");
}
else if(d>10 && d<=20){
printf("과체중");
}
else if(d>20){
printf("비만");
}
return 0;
}
/*
#include<stdio.h>
int main() {
int a, b, c, t;
scanf("%d %d %d", &a, &b, &c);
if(a>b) {
t = a;
a = b;
b = t;
}
if(b>c) {
t = b;
b = c;
c = t;
}
// pre - processing
if(c<a+b) {
printf("Yes");
}
else {
printf("No");
}
}
*/
// conditional
/*
#include<stdio.h>
int main() {
// switch ~ case
int n;
scanf("%d", &n);
switch(n) {
case 1:
printf("11111111");
break;
case 2:
printf("22222");
case 3:
printf("3333333");
break;
case 4:
case 5:
case 6:
printf("6666666");
break;
default:
printf("00000000");
}
}
*/
/*
#include <stdio.h>
int main()
{
int a,b,c,d;
scanf("%d %d %d %d",&a,&b,&c,&d);
switch(a+b+c+d){
case 0:
printf("모");
break;
case 1:
printf("도");
break;
case 2:
printf("개");
break;
case 3:
printf("걸");
break;
case 4:
printf("윷");
break;
return 0;
}
}
*/
/*
#include <stdio.h>
int main()
{
int n;
scanf("%d",&n);
switch(n/10){
case 10:
case 9:
printf("A");
break;
case 8:
printf("B");
break;
case 7:
printf("C");
break;
case 6:
printf("D");
break;
default:
printf("F");
return 0;
}
}
/*
#include <stdio.h>
int main()
{
int n;
scanf("%d",&n);
switch(n){
case 100:
case 99:
case 98:
case 97:
case 96:
case 95:
case 94:
case 93:
case 92:
case 91:
case 90:
printf("A");
break;
case 89:
case 88:
case 87:
case 86:
case 85:
case 84:
case 83:
case 82:
case 81:
case 80:
printf("B");
break;
case 79:
case 78:
case 77:
case 76:
case 75:
case 74:
case 73:
case 72:
case 71:
case 70:
printf("C");
break;
case 69:
case 68:
case 67:
case 66:
case 65:
case 64:
case 63:
case 62:
case 61:
case 60:
printf("D");
break;
default:
printf("F");
break;
}
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
int n;
scanf("%d", &n);
if (n >= 90)
printf("A");
else if (n >= 80)
printf("B");
else if (n >= 70)
printf("C");
else if (n >= 60)
printf("D");
else
printf("F");
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
int a;
{
scanf("%d",&a);
if (((a/4==0)||(a/100>0))||(a/400)){
printf("yes");
}
if else((a/4==0)||(a/100>0))
{
printf("no")
}
else {
printf("no");
}
return 0;
}
}
*/
/*
#include <stdio.h>
int main()
{
int a;
{
scanf("%d",&a);
if (((a%4==0)&&(a%100!=0))||(a%400==0)){
printf("yes");
}
else {
printf("no");
}
return 0;
}
}
*/
#include <stdio.h>
int main()
{
int a,b;
scanf("%d %d",&a,&b);
switch(b){
case 1:
printf("31");
break;
case 2:
printf("")
}
}