class A:
    def __init__(self, txt: str):
        self.x: G = None
        self.r: H = None
        self.q: D = None
        self.w: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: H = None
        self.y: F = None
        self.o: F = None
        self.v: E = None
        self.t: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: G = None
        self.x: D = None
        self.o: G = None
        self.v: E = None
        self.u: G = None
        self.r: D = None
        self.y: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: A = None
        self.p: B = None
        self.x: B = None
        self.t: D = None
        self.u: C = None
        self.r: D = None
        self.y: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: H = None
        self.t: B = None
        self.x: G = None
        self.v: G = None
        self.o: A = None
        self.r: G = None
        self.s: H = None
        self.p: F = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: B = None
        self.r: C = None
        self.p: D = None
        self.v: B = None
        self.s: H = None
        self.w: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: F = None
        self.y: A = None
        self.u: G = None
        self.s: G = None
        self.txt = txt

i = A("i")
j = B("j")
c = C("c")
h = D("h")
f = E("f")
b = F("b")
l = G("l")
n = H("n")
e = E("e")
k = F("k")

i.x = l
i.r = n
i.q = h
i.w = k
j.p = n
j.y = k
j.o = k
j.v = e
j.t = b
c.t = l
c.o = l
c.u = l
c.x = h
c.r = h
c.v = f
c.y = n
h.x = i
f.q = i
f.p = j
f.x = j
f.t = h
f.r = h
f.u = c
f.y = l
b.u = n
b.s = n
b.t = j
b.x = l
b.v = l
b.r = l
b.o = i
b.p = k
l.o = j
l.v = j
l.r = c
l.p = h
l.s = n
l.w = f
n.r = k
n.y = i
n.u = l
n.s = l
e.q = i
e.p = j
e.x = j
e.t = h
e.r = h
e.u = c
e.y = l
k.u = n
k.s = n
k.t = j
k.x = l
k.v = l
k.r = l
k.o = i
k.p = b
assert b.r.o.p.y.q.x.txt == "
class A:
    def __init__(self, txt: str):
        self.x: G = None
        self.r: H = None
        self.q: D = None
        self.w: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: H = None
        self.y: F = None
        self.o: F = None
        self.v: E = None
        self.t: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: G = None
        self.x: D = None
        self.o: G = None
        self.v: E = None
        self.u: G = None
        self.r: D = None
        self.y: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: A = None
        self.p: B = None
        self.x: B = None
        self.t: D = None
        self.u: C = None
        self.r: D = None
        self.y: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: H = None
        self.t: B = None
        self.x: G = None
        self.v: G = None
        self.o: A = None
        self.r: G = None
        self.s: H = None
        self.p: F = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: B = None
        self.r: C = None
        self.p: D = None
        self.v: B = None
        self.s: H = None
        self.w: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: F = None
        self.y: A = None
        self.u: G = None
        self.s: G = None
        self.txt = txt

i = A("i")
j = B("j")
c = C("c")
h = D("h")
f = E("f")
b = F("b")
l = G("l")
n = H("n")
e = E("e")
k = F("k")

i.x = l
i.r = n
i.q = h
i.w = k
j.p = n
j.y = k
j.o = k
j.v = e
j.t = b
c.t = l
c.o = l
c.u = l
c.x = h
c.r = h
c.v = f
c.y = n
h.x = i
f.q = i
f.p = j
f.x = j
f.t = h
f.r = h
f.u = c
f.y = l
b.u = n
b.s = n
b.t = j
b.x = l
b.v = l
b.r = l
b.o = i
b.p = k
l.o = j
l.v = j
l.r = c
l.p = h
l.s = n
l.w = f
n.r = k
n.y = i
n.u = l
n.s = l
e.q = i
e.p = j
e.x = j
e.t = h
e.r = h
e.u = c
e.y = l
k.u = n
k.s = n
k.t = j
k.x = l
k.v = l
k.r = l
k.o = i
k.p = b
assert b.r.o.p.y.q.x.txt == "i"