CodechefJul 07, 2025

Clear Day

Hazrat Ali

Codechef

In a particular week, Chef finds X days to be rainy and Y days to be cloudy.
Find the number of clear days in the week.

Input Format

  • The first and only line of input will contain two space-separated integers X and Y, denoting the number of rainy and cloudy days in the week.

Output Format

Output the number of clear days in the week.

Constraints

  • 0≤X,Y≤7
  • 0≤X+Y≤7

Sample 1:

Input
2 3
Output
 
2

Solution
X, Y = map(int, input().split())
clear_days = 7 - (X + Y)
print(clear_days)




Comments