#include main() { int X, Y, L; int count = 0; scanf("%d %d %d", &X, &Y, &L); if (Y < 0) { count = 2; Y = -Y; } count += L/Y; if (L%Y > 0) count++; if (X < 0) { X = -X; count++; } else if (X > 0) { count++; } count += L/X; if (L%X > 0) count++; printf("%d\n", count); }