/*
#include <stdio.h>
main ()
{
int a,b,c;
scanf("%d.%d.%d",&a,&b,&c);
printf("%02d-%02d-%04d",c,b,a);
return 0;
}
*/
/*
#include <stdio.h>
main ()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%.1f",a*b/2.0);
return 0;
}
*/
/*
#include <stdio.h>
main ()
{
int a;
scanf("%d",&a);
printf("%d %d",a/60,a%60);
return 0;
}
*/
/*
비교 연산자 > < >= <= == != (=이 오른쪽에 위치)
5>6 => true 1 or false 0
1049-1052
*/
/*
#include <stdio.h>
main()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d",a>b);
return 0;
}
*/
/*
#include <stdio.h>
main ()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d",a==b);
return 0;
}
a=b;//대입연산자
a==b //비교연산자
#include <stdio.h>
main()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d",a<=b);
return 0;
}
*/
/*
#include <stdio.h>
main()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d",a!=b);
return 0;
}
*/
/*
논리연산자 not and or
1 0
not 1 => 0
not 0 => 1
not 80 => 0
!a not연산자
and 연산자 그리고 &&
a and b => 1
1 1 1
1 0 0
0 1 0
0 0 0
1 && 0 => 0
or 또는 || (버티컬 바)
1 1 1
1 0 1
0 1 1
0 0 0
*/
//80 && 0 =>0
//1053-1055 ,
/*
#include <stdio.h>
main()
{
int a;
scanf("%d",&a);
printf("%d",!a);
return 0;
}
*/
/*
#include <stdio.h>
main ()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d",a && b);
return 0;
}
*/
/*
#include <stdio.h>
main ()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d",a || b);
return 0;
}
*/
/*
include <stdio.h>
main()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d",(a&&!b)||(!a&&b));
return 0;
}
*/
/*
#include <stdio.h>
main ()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d",!a&&!b||a&&b);
return 0;
}
*/
/*
#include <stdio.h>
main ()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d",!a&&!b);
return 0;
}
*/
//1059-1062
/*
#include <stdio.h>
main ()
{
int a;
scanf("%d",&a);
printf("%d",~a);
return 0;
}
*/
/*
#include <stdio.h>
main ()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d",a&b);
return 0;
}
*/
/*
#include <stdio.h>
main ()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d",a|b);
return 0;
}
*/
/*
#include <stdio.h>
main ()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d",a^b);
return 0;
}
*/
/*
#include <stdio.h>
main ()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d",a>b?a:b);
return 0;
}
*/
/*
#include <stdio.h>
int main ()
{
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
printf("%d",(a<b?a:b)<c?(a<b?a:b):c);
return 0;
}
*/
/*
조건문 if - else / switch - case
#include <stdio.h>
int main ()
{
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if(a<=60)
{
명령문1;
}
else if(a<=70)
{
}
else if()
{
}
else
{
명령문2;
}
}
*/
/*
#include <stdio.h>
int main()
{
int a;
scanf("%d",&a);
if(a<10)
{
printf("small");
}
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
int a;
scanf("%d",&a);
if(a<10)
{
printf("small");
}
else
{
printf("big");
}
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
int a,b;
scanf("%d %d",&a,&b);
if(a>b)
{
printf(">");
}
else if(a<b)
{
printf("<");
}
else
{
printf("=");
}
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
int a,b;
scanf("%d %d",&a,&b);
if(a<b)
{
printf("%d",b-a);
}
else
{
printf("%d",a-b);
}
return 0;
}
*/
#include <stdio.h>
int main()
{
int a,b;
scanf("%d %d",&a,&b);
if(a%5==0)
{
printf("%d",(90-a)/5+b);
}
else
{
printf("%d",(90-a)/5+b+1);
}
return 0;
}