Menu

Sign in to track your progress and unlock all features.

Theme style

Log in

Full lesson preview

Check Multiple of 3 and 5

Determine whether a number is a multiple of both 3 and 5.

Python practice10 minControl Flow (If–Else Logic)BeginnerLast updated March 15, 2026

Problem statement

Given an integer n, return True if n is divisible by both 3 and 5, otherwise return False. This is equivalent to checking divisibility by 15. Handle zero and negative numbers correctly.

Task

Implement a function that returns True when a number is divisible by both 3 and 5 (i.e., divisible by 15).

Examples

Example

Input

15

Output

True

15 is divisible by both 3 and 5.

Input format

A single integer n.

Output format

A boolean: True if n is divisible by both 3 and 5, otherwise False.

Constraints

-10**9 <= n <= 10**9. Input will be integer.

Samples

Sample 1

Input

10

Output

False

10 is divisible by 5 but not by 3.