import sys

input = sys.stdin.readline



rgb = int(''.join(input().split()))



if rgb % 4 == 0:

    print("YES")

else:

    print("NO")
import sys



r, g, b = sys.stdin.readline().split()



def main():

    return 'NO' if int(g + b) % 4 else 'YES'



if __name__ == '__main__':

    ans = main()

    print(ans)
import sys

input = sys.stdin.readline
rgb = int("".join(input().split()))
if rgb % 4 == 0:
    print("YES")
else:
    print("NO")

import sys

r, g, b = sys.stdin.readline().split()


def main():
    return "NO" if int(g + b) % 4 else "YES"


if __name__ == "__main__":
    ans = main()
    print(ans)

-input = sys.stdin.readline -rgb = int("".join(input().split())) -if rgb % 4 == 0: -    print("YES") -else: -    print("NO") +r, g, b = sys.stdin.readline().split() + + +def main(): +    return "NO" if int(g + b) % 4 else "YES" + + +if __name__ == "__main__": +    ans = main() +    print(ans)