using System;
public class Test
{
public static void Main()
{
string colour = "#FFFC9684".TrimStart('#');
string R = colour.Substring(2, 2);
string G = colour.Substring(4, 2);
string B = colour.Substring(6, 2);
int decValue = int.Parse(B + G + R, System.Globalization.NumberStyles.HexNumber);
Console.WriteLine(decValue);
}
}
dXNpbmcgU3lzdGVtOwoKcHVibGljIGNsYXNzIFRlc3QKewoJcHVibGljIHN0YXRpYyB2b2lkIE1haW4oKQoJewogICAgICAgIHN0cmluZyBjb2xvdXIgPSAiI0ZGRkM5Njg0Ii5UcmltU3RhcnQoJyMnKTsKICAgICAgICBzdHJpbmcgUiA9IGNvbG91ci5TdWJzdHJpbmcoMiwgMik7CiAgICAgICAgc3RyaW5nIEcgPSBjb2xvdXIuU3Vic3RyaW5nKDQsIDIpOwogICAgICAgIHN0cmluZyBCID0gY29sb3VyLlN1YnN0cmluZyg2LCAyKTsKCQlpbnQgZGVjVmFsdWUgPSBpbnQuUGFyc2UoQiArIEcgKyBSLCBTeXN0ZW0uR2xvYmFsaXphdGlvbi5OdW1iZXJTdHlsZXMuSGV4TnVtYmVyKTsKICAgICAgICBDb25zb2xlLldyaXRlTGluZShkZWNWYWx1ZSk7Cgl9Cn0=