def dectobin(x):
    """Convert Decimal to Binary. Input is a positive integer and output is a string."""

    ans = ''
    while x > 1:
        tmp = x % 2
        ans = str(tmp) + ans
        x = x // 2
    ans = str(x) + ans
    return ans