Inclusion Criteria:  Males and/or females over age 18 A diagnosis of AML according to the World Health Organization (WHO) 2016 criteria with relapsed or refractory disease and have exhausted, or are ineligible for therapeutic options, or int-risk or high-risk or very high-risk MDS according to revised International Prognostic Scoring System (IPSS-R); Eastern Cooperative Oncology Group (ECOG) performance status of 0-2. Expected survival >3 months. No radiotherapy, surgery or hormonal therapy for any kind of within 2 weeks prior to participating in this study. Patients must have fully recovered from the acute toxicities of any prior treatment with any anti-cancer drugs (including hypomethylating agents in MDS patients), radiotherapy or other anti-cancer modalities (i.e., returned to baseline status as noted before most recent treatment) for any tumors. Patients with persisting, stable chronic toxicities from such prior treatment ≤Grade 1 are eligible, but must be documented as such. Signed informed consent form.  Exclusion Criteria:  Acute promyelocytic leukemia according to World Health Organization 2016 criteria Known central nervous system involvement Medical history of difficulty swallowing, malabsorption or other chronic gastrointestinal disease, or conditions that may hamper compliance and/or absorption of the tested product Known allergies, hypersensitivity, or intolerance to Max-40279-01 or AZA or the excipients of these treatments Previously treated malignancies other than the current disease, except for adequately treated non-melanoma skin cancer, in situ cancer, or other cancer from which the subject has been disease-free for at least 5 years at the trial entry