#include<stdio.h>
int main()
{
    float a,b,c
    scanf("%d %f", &a,b);
    c=180-(a+b);
    printf("%d,0f\b",c);
    return 0;
}