Sherlock and The Beast

  • + 0 comments

    import sys can u telll me what is error in my code

    t = int(raw_input())

    test = 0

    for a0 in xrange(t):

    n = int(raw_input().strip())
    for i in range(0,n):
        if (n-5*i)>=0 and (n-5*i)%3==0:
            print("5"*(n-5*i)+"3"*(i*5))
            test = test + 1
        if test==0:
            print("-1")