// Path: src/main/java/com/hackerrank/SherlockAndTheBeast.java
// static String findLargestDecentNumber(int digits) {
//     for (int i = digits / 3; i >= 0; i--) {
//         if ((digits - 3 * i) % 5 == 0) {
//             String result = new String(new char[3 * i]).replace("\0", "5");
//             result += new String(new char[digits - 3 * i]).replace("\0", "3");
//             return result;
//         }
//     }
//     return "-1";
// }


import org.junit.Test;
import static com.hackerrank.SherlockAndTheBeast.findLargestDecentNumber;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.IsEqual.equalTo;
package com.hackerrank;



public class SherlockAndTheBeastTest {

    @Test
    public void canHandleMissingValue() {
// Path: src/main/java/com/hackerrank/SherlockAndTheBeast.java
// static String findLargestDecentNumber(int digits) {
//     for (int i = digits / 3; i >= 0; i--) {
//         if ((digits - 3 * i) % 5 == 0) {
//             String result = new String(new char[3 * i]).replace("\0", "5");
//             result += new String(new char[digits - 3 * i]).replace("\0", "3");
//             return result;
//         }
//     }
//     return "-1";
// }


// Path: src/test/java/com/hackerrank/SherlockAndTheBeastTest.java
import org.junit.Test;
import static com.hackerrank.SherlockAndTheBeast.findLargestDecentNumber;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.IsEqual.equalTo;

package com.hackerrank;



public class SherlockAndTheBeastTest {

    @Test
    public void canHandleMissingValue() {
        assertThat(findLargestDecentNumber(1), is(equalTo("-1")));