Unchain applicataion extended.

The only requirement for input is two ending subsequent invocations