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