# Duck Number

If given number has zero in between or end, that is called Duck number.

## Example-1:

```Input    : n=2021
Output   : Duck Number
Explain  : The number 2021 have zero in between the number.
So the number is called "Duck Number".
```

## Example-2:

```Input    : n=2340
Output   : Duck Number
Explain  : The number 2340 is ends with zero.
So the number is called "Duck Number".
```

## Example-3:

```Input    : n=0025
Output   : Not a Duck Number
Explain  : The number 0025 exact value is 25 and Its not have Zero.
So Its not a Duck Number.

```

## Example-4:

```Input    : n=2345
Output   : Not a Duck Number
Explain  : The number 2345 is not have zero.So It's not a Duck Number.
```

## Example-5:

```Input    : n=023045
Output   : Duck Number
Explain  : The number 023045 exact value is 23045 and Its have zero.
So it's Duck Number.
```

# Solution

```public class Main
{
public static void main(String [] args)
{
int n=2020;
while(n!=0)
{
if(n%10==0)
{
System.out.print("Duck Number");
break;
}
n=n/10;
if(n==0)
{
System.out.print("Not a Duck Number");
}
}
}
}
```
```n=2021
n=str(n)
n=n.lstrip("0")
if("0" in n):
print("Duck number")
else:
print("Not a Duck number")

```

# Output:

```Duck Number
```