//I can't Understand
package com.codegym.task.task21.task2103;

/*
Everything ingenious is simple!

*/
public class Solution {
    public static boolean calculate(boolean a, boolean b, boolean c, boolean d) {

     return (a && b && c && !d) || (!a && c) || (!b && c) || (c && d);
    }

    public static void main(String[] args) {
    }
}