Saturday, June 25, 2016

SOLUTION OF URI 2057


// 
  Solution of  2057 Time Zone
//   (Mahmud_Jamil) BRUR






#include <stdio.h>
int main()
{
    int s, t, f, ans;
    scanf("%d%d%d", &s, &t, &f);
    ans = s+t+f;
    if(ans < 0) ans = 24 + ans;
    printf("%d\n",ans%24);
    return 0;
}