PHƯỚC HƯNG OJ · THỬ THÁCH THUẬT TOÁN

#GL0000007. Phép chia số nguyên rất lớn (Large Division)

HỌC THEO LỘ TRÌNH

Bài tập thuộc lộ trình

1 lộ trình

Phép chia số nguyên rất lớn (Large Division)

Large Division

Source: LightOJ

Version: Phuoc Hung OJ Extended

Problem Statement

Given integers aa and bb, where aa can contain hundreds of decimal digits and bb is a nonzero signed 32-bit integer, determine whether aa is divisible by bb. Negative signs do not affect divisibility.

Input

One line with integers aa and bb.

Output

Print divisible if aa is divisible by bb, otherwise not divisible.

Subtasks

  • Subtask 1 (20 points): −1015≤a≤1015-10^{15} \le a \le 10^{15}; 1≤∣b∣≤1001 \le |b| \le 100
  • Subtask 2 (30 points): −1080≤a≤1080-10^{80} \le a \le 10^{80}; 1≤∣b∣≤1061 \le |b| \le 10^{6}
  • Subtask 3 (50 points): −10200≤a≤10200-10^{200} \le a \le 10^{200}; −231≤b≤231−1-2^{31} \le b \le 2^{31}-1; b≠0b \ne 0; The representation has no leading zeros except the number zero.

Examples

Input

7678123668327637674887634 101

Output

not divisible

Explanation

Processing the decimal digits modulo 101101 gives a nonzero remainder, so the number is not divisible.