#include int main() { int x,y,z,t; int i = 1; int sum = 0; int dam = 0; scanf("%d\n", &x); scanf("%d\n", &y); scanf("%d\n", &z); scanf("%d\n", &t); sum = x; dam = z - t; do{ sum *= x; }while(i < x); i = 0; while((y != 0) || (y > sum)){ y += dam; i++; } printf("%d", i); return (0); }