3.4 Don's Birthday
Score: 25pts
Time Limit: 5.00 sec
A smart developer, Don, was working on an exciting project. He was trying to scrape YouTube data using the Puppeteer library and successfully scraped the thumbnails of two videos. He extracted two URLs for the thumbnails and realized he needed to extract the video IDs from these URLs. Each URL contained a unique video ID that followed the

format:https://i.ytimg.com/vi/iR7yh2pGk50/hq720.jpg?sqp=-oaymwEjCOgCEMoBSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLCQyYub0_Dqeh-gUigBl-ZrrTK6jg

The video ID was a string of letters and numbers such as (iR7yh2pGk50) from above example, and Don noticed that each video ID contained exactly four numbers. He wanted to extract these numbers to use for a special occasion.
It was Don’s birthday, and he planned to give return gifts to his nine closest friends. As a gesture of thanks for helping him extract the video IDs, he decided to use the numbers from the video IDs as the prices of the gifts.
Don extracted the numbers from both video IDs and arranged them in the same sequence as they appeared in the IDs. The last number, he decided, would be the average of all the numbers from both IDs.He invited his friends and asked them to stand in THREE groups of THREE people, one behind the other. Each gift had a price equal to one of the extracted numbers.
As Don distributed the gifts, he realized that all of his friends except the fifth one, who was his best friend, were unhappy with their gifts. His fifth friend was perfectly satisfied with the gift, but the others wanted to exchange theirs.

After some thought, Don devised a new gift exchange plan:
1st ↔ 3rd friend
2nd ↔ 6th friend
3rd ↔ 9th friend
4th ↔ 2nd friend
5th friend kept their gift
6th ↔ 8th friend
7th ↔ 1st friend
8th ↔ 4th friend
9th ↔ 7th friend everyone became happy, and they celebrated Don’s birthday with joy!
To make sure there was no confusion in the future, Don wanted you to return the final arrangement you desided after calculation.

Constraints
Last Gift Price value : L

1 < L< 10^8

take url1 From Question.

Input Format
A Single Line Url link of Youtube thumbnail :

https://i.ytimg.com/vi/V0m57Lzp1yE/hq720.jpg?sqp=-oaymwEXCNAFEJQDSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLDFPkqjkkr0fhRWAu-V7crUNd17ug

Output Format
7 0 7
1 0 2
3 5 5

Example 1
Input:
https://i.ytimg.com/vi/iR7yh2pGk50/hq720.jpg?sqp=-oaymwEjCOgCEMoBSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLCQyYub0_Dqeh-gUigBl-ZrrTK6jg

https://i.ytimg.com/vi/V0m57Lzp1yE/hq720.jpg?sqp=-oaymwEXCNAFEJQDSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLDFPkqjkkr0fhRWAu-V7crUNd17ug

Output:
7 0 7
1 0 2
3 5 5

Explanation:
After taking data from both the Url1 and Url2 and after redistribution process of the gift we get final record which Don will keep it safe so that he could use this data in next Birthday .

Log In to solve the Question