BFROTATE - rotate it

no tags 

Rotate the given string starting at the given place from the end with wrapping around at the end. You are allowed to use only BrainFck!

Input

Given an integer of strictly 2 digits and a string (length <= 99) in the same line without space between them. You may assume that the string consists of only printable characters and that the length of string is more than the given integer.

Output

One string of the same length as input and which has same characters in different order as described by problem.

Example

Input:
04abcdefgh

Output:
efghabcd

hide comments
Mostafa 36a2: 2012-11-28 15:11:58

116 byte code !!
Thanks GOD
:)

(Tjandra Satria Gunawan)(曾毅昆): 2012-07-27 03:46:56

read until EOF = WA
assuming '\n' at the end of input = AC

Siarhei Kulik: 2011-03-18 12:37:06

Nice problem :)

!(accepted): 2011-03-18 12:37:06

I apologize. The data set index was wrong and has been corrected. Solutions have been rejudged with the latest data sets.

Arne: 2011-03-18 12:37:06

Is there something like a newline at the end of the input?
My submission works fine with the example and some other examples made up by me on ideone.com. I have no idea why I get "wrong answer".

I'm new here, I hope it's the right place to ask. But I'd be very thankful for any help.


Added by:!(accepted)
Date:2009-04-29
Time limit:0.200s-1s
Source limit:256B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:BF
Resource:Prateek Sharma