# Write your Python solution here. Read stdin and write stdout.