using System;
public class Test
{
public static void Main()
{
float at = RecursiveMet(7000, 0, 0, 2);
Console.WriteLine(at);
}
public static float RecursiveMet(float salary, float prevY, int curI, int doI)
{
if (curI == doI)
{
return prevY;
}
curI++;
float newY = prevY + salary*12 + ((prevY+salary*12) / 10);
return RecursiveMet(salary, newY, curI, doI);
}
}
dXNpbmcgU3lzdGVtOwoKcHVibGljIGNsYXNzIFRlc3QKewoJcHVibGljIHN0YXRpYyB2b2lkIE1haW4oKQoJewoJCWZsb2F0IGF0ID0gUmVjdXJzaXZlTWV0KDcwMDAsIDAsIDAsIDIpOwoJCUNvbnNvbGUuV3JpdGVMaW5lKGF0KTsKCQkKCX0KCQoJcHVibGljIHN0YXRpYyBmbG9hdCBSZWN1cnNpdmVNZXQoZmxvYXQgc2FsYXJ5LCBmbG9hdCBwcmV2WSwgaW50IGN1ckksIGludCBkb0kpCgl7CgkJaWYgKGN1ckkgPT0gZG9JKQoJCXsKCQkJcmV0dXJuIHByZXZZOwoJCX0KCQkJCgkJY3VySSsrOwkKCQlmbG9hdCBuZXdZID0gcHJldlkgKyBzYWxhcnkqMTIgKyAoKHByZXZZK3NhbGFyeSoxMikgLyAxMCk7CgkJCgkJcmV0dXJuIFJlY3Vyc2l2ZU1ldChzYWxhcnksIG5ld1ksIGN1ckksIGRvSSk7CQoJfQp9Cg==