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