When you ask a question, don’t forget to **include a link** to the exercise or project you’re dealing with!

A coin vend kiosk is installed all the major metro stations. The machine allows one to obtain cash of rupees in exchange for coins. The machine operates with the following conditions:

Only coins of denomination ₹1 and ₹2 can be exchanged. Coins of denomination ₹2 should not be inserted successively twice.

The task here to find all the possible combinations of the coins that can be inserted to get rupees from the kiosk.

Say, R = 1, then only one coin of ₹1 can be inserted to get 1 rupee.

Input:3 — Value of R Output:3 — Different ways to insert the coins to get rupees

Explanation:The possible ways of inserting ₹1 and ₹2 coins for ₹3 in cash are:Way 1: {1,1,1} Way 2: {2,1}Way 3: {1,2}

Hence, the output is 3.Example 2:Input:5 — Value of R 6 — Different ways to insert the coins to get rupees

Explanation: The possible ways of inserting ₹1 and ₹2 coins for ₹5 in cash are

Way 1: {1,1,1,1,1} Way 2: {2,1,1,1} Way 3: {1,1,1,2} Way 4: {1,1,2,1} Way 5: {1,2,1,1} Way 6: {2,1,2}

Hence, the output is 6.Constraints: = 50 Input format for testing:The candidate has to write the code to accept 1 input.

● Input: Accept value for N (positive integer number).

Output format for testing:

● The output should be a positive integer number (Check the output in Example 1 and Example 2).

Additional messages in the output will cause the failure of test cases.

Instructions: The system does not allow any kind of hard coded input value/values.

The written program code by the candidate will be verified against the inputs which are supplied from the system.