Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- v = int(input())
- t = int(input())
- if (-1000 <= v) and (v <= 0):
- v = (v % 109)
- s = (v * t)
- print(s % 109)
- else:
- if (-1000 <= t) and (t <= 0):
- t = (t - (t * 2))
- if (1 <= v) and (v <= 1000) and (1 <= t) and (t <= 1000):
- s = (v * t)
- print(s % 109)
- else:
- not print
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement