var mb,kb,byte,bit, result : Real;
begin
write('Mb. = '); readln(mb);
write('Kb. = '); readln(kb);
write('Byte = '); readln(byte);
write('Bit = '); readln(bit);
result := mb * 1014 * 1024 * 8;
result := result + (kb * 1024 * 8);
result := result + (byte * 8);
result := result + bit;
writeln(result:0:2);
end.
var mb,kb,byte,bit, result : Real;
begin
write('Mb. = '); readln(mb);
write('Kb. = '); readln(kb);
write('Byte = '); readln(byte);
write('Bit = '); readln(bit);
result := mb * 1014 * 1024 * 8;
result := result + (kb * 1024 * 8);
result := result + (byte * 8);
result := result + bit;
writeln(result:0:2);
end.