using System;
public class Test
{
static void Swap(ref string a, ref string b) {
string c = b;
b = a;
a = c;
}
public static void Main()
{
string a = "a";
string b = "b";
Swap(ref a, ref b);
Console.WriteLine(a);
Console.WriteLine(b);
}
}
dXNpbmcgU3lzdGVtOwoKcHVibGljIGNsYXNzIFRlc3QKewoJCiAgICBzdGF0aWMgdm9pZCBTd2FwKHJlZiBzdHJpbmcgYSwgcmVmIHN0cmluZyBiKSB7CiAgICAgICAgc3RyaW5nIGMgPSBiOwogICAgICAgIGIgPSBhOwogICAgICAgIGEgPSBjOwogICAgfQoJCglwdWJsaWMgc3RhdGljIHZvaWQgTWFpbigpCgl7CgkgICAgc3RyaW5nIGEgPSAiYSI7CgkgICAgc3RyaW5nIGIgPSAiYiI7CgkgICAgU3dhcChyZWYgYSwgcmVmIGIpOwoJICAgIENvbnNvbGUuV3JpdGVMaW5lKGEpOwoJICAgIENvbnNvbGUuV3JpdGVMaW5lKGIpOwoJfQp9