Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: utf-8 -*-
- N = int(input())
- if N == 1 or N == 21 or N == 31 or N == 41 or N == 51 or N == 61 or N == 71 or N == 81 or N == 91:
- print('Джону' , N , 'год')
- if (N >= 2 and N <= 4) or (N >= 22 and N <= 24) or (N >= 32 and N <= 34) or (N >= 42 and N <= 44) or (N >= 52 and N <= 54) or (N >= 62 and N <= 64) or(N >= 72 and N <= 74) or (N >= 82 and N <= 84) or (N >= 92 and N <= 94):
- print('Джону' , N , 'года')
- else:
- print('Джону' , N , 'лет')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement