//for min max functions
#include <algorithm>
#include <stdlib.h>
using namespace std;
static QString trueFalse(bool x){