def main():
    A, P = map(int, input().split())
    k = 3 * A + P
    print(int(k / 2))


if __name__ == "__main__":
    main() def main():
    A, P = map(int, input().split())
    k = 3 * A + P
    print(int(k / 2)) main A, P = map(int, input().split()) A map(int, input().split()) map int input().split() ().split () input split P k = 3 * A + P k 3 * A + P 3 * A 3 A P print(int(k / 2)) print int(k / 2) int k / 2 k 2 if __name__ == "__main__":
    main() __name__ == "__main__" __name__ "__main__" main() main def main():
    A, P = map(int, input().split())
    k = 3 * A + P
    print(int(k / 2)) def main():
    A, P = map(int, input().split())
    k = 3 * A + P
    print(int(k / 2)) main
def main():
    A, P = map(int, input().split())
    k = 3 * A + P
    print(int(k / 2))


if __name__ == "__main__":
    main()
