using System.Threading;
using System;
class Test{
public static int Hoge(int n){ return n*2; }
public static void Main(){
int a = 10;
Thread t = new Thread(delegate(){
int r = Hoge(a);
Console.Write(r);
});
t.Start();
t.Join();
}
}
dXNpbmcgU3lzdGVtLlRocmVhZGluZzsKdXNpbmcgU3lzdGVtOwoKY2xhc3MgVGVzdHsKICAgIHB1YmxpYyBzdGF0aWMgaW50IEhvZ2UoaW50IG4peyByZXR1cm4gbioyOyB9CiAgICBwdWJsaWMgc3RhdGljIHZvaWQgTWFpbigpewogICAgICAgICBpbnQgYSA9IDEwOwogICAgICAgICBUaHJlYWQgdCA9IG5ldyBUaHJlYWQoZGVsZWdhdGUoKXsKICAgICAgICAgICAgIGludCByID0gSG9nZShhKTsKICAgICAgICAgICAgIENvbnNvbGUuV3JpdGUocik7CiAgICAgICAgIH0pOwogICAgICAgICB0LlN0YXJ0KCk7CiAgICAgICAgIHQuSm9pbigpOwogICAgfQp9