Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = int(input())
- if a == 1:
- print("Talking horse Julius was walking along the road and met 40 robbers.")
- elif a % 2 == 0 and a < 82:
- print("- Hello, robber number " + str(a // 2) + ",- said talking horse Julius.")
- elif a % 2 != 0 and a < 82:
- print("- Hello, talking horse Julius,- said robber number " + str(a // 2) + ".")
- elif a % 2 == 0 and a < 162:
- print("- Hello, horse of robber number " + str((a - 80) // 2) + ",- said talking horse Julius.")
- elif a % 2 != 0 and a < 162:
- print("- Hello, talking horse Julius,- said horse of robber number " + str((a - 80) // 2) + ".")
- elif a % 2 == 0 and a < 242:
- print("- Goodbye, robber number " + str((a - 160) // 2) + ",- said talking horse Julius.")
- elif a % 2 != 0 and a < 242:
- print("- Goodbye, talking horse Julius,- said robber number " + str((a - 160) // 2) + ".")
- elif a % 2 == 0 and a < 322:
- print("- Goodbye, horse of robber number " + str((a - 240) // 2) + ",- said talking horse Julius.")
- elif a % 2 != 0 and a < 322:
- print("- Goodbye, talking horse Julius,- said horse of robber number " + str((a - 240) // 2) + ".")
- else:
- print("And talking horse Julius went on along the road.")
Advertisement
Add Comment
Please, Sign In to add comment