#include<stdio.h>
void main(){
    int a,b;
    d = 180-(a+b);
    scanf("%d%d",&a,&b);
    printf("%d",d);
    
}