Codechef•Aug 04, 2025
Ageing
Hazrat Ali
Codechef
Determine Chefina's age when Chef will be X years old.
Note: Assume that Chef and Chefina were born on same day and same month (just different year).
Input Format
- The first line of input will contain a single integer T, denoting the number of test cases.
- Each test case consists of a single integer X, the age of Chef.
Output Format
For each test case, output Chefina's age when Chef will be X years old.
Constraints
- 1≤T≤25
- 25≤X≤50
Sample 1:
Input
4 25 36 50 44
Output
15 26 40 34
Solution
t = int(input())
for _ in range(t):
x = int(input())
age = x - 10
print(age)