#include using namespace std; int main(){ int a,b,c; cin >> a >> b >> c; int x = (a*60 + b + c*60*60) / 180 + 1; cout << x << endl; }