class A:
    def __init__(self, txt: str):
        self.q: B = None
        self.t: C = None
        self.w: E = None
        self.y: D = None
        self.o: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: A = None
        self.t: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: E = None
        self.o: E = None
        self.z: E = None
        self.v: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: A = None
        self.s: E = None
        self.w: E = None
        self.u: A = None
        self.o: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: F = None
        self.w: F = None
        self.z: C = None
        self.x: E = None
        self.q: C = None
        self.r: E = None
        self.txt = txt

h = A("h")
a = B("a")
g = C("g")
m = D("m")
c = E("c")
n = F("n")
k = F("k")
j = D("j")
e = E("e")
i = C("i")

h.q = a
h.t = g
h.w = c
h.o = c
h.y = j
a.o = h
a.t = i
g.w = c
g.o = e
g.z = e
g.v = n
m.z = h
m.u = h
m.s = c
m.w = c
m.o = a
c.r = i
n.u = k
n.w = k
n.z = g
n.q = g
n.x = c
n.r = e
k.u = n
k.w = n
k.z = g
k.x = e
k.r = e
k.q = i
j.z = h
j.u = h
j.s = c
j.w = c
j.o = a
e.r = i
i.w = e
i.o = c
i.z = c
i.v = n
assert e.r.v.q.w.r.o.r.txt == "
class A:
    def __init__(self, txt: str):
        self.q: B = None
        self.t: C = None
        self.w: E = None
        self.y: D = None
        self.o: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: A = None
        self.t: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: E = None
        self.o: E = None
        self.z: E = None
        self.v: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: A = None
        self.s: E = None
        self.w: E = None
        self.u: A = None
        self.o: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: F = None
        self.w: F = None
        self.z: C = None
        self.x: E = None
        self.q: C = None
        self.r: E = None
        self.txt = txt

h = A("h")
a = B("a")
g = C("g")
m = D("m")
c = E("c")
n = F("n")
k = F("k")
j = D("j")
e = E("e")
i = C("i")

h.q = a
h.t = g
h.w = c
h.o = c
h.y = j
a.o = h
a.t = i
g.w = c
g.o = e
g.z = e
g.v = n
m.z = h
m.u = h
m.s = c
m.w = c
m.o = a
c.r = i
n.u = k
n.w = k
n.z = g
n.q = g
n.x = c
n.r = e
k.u = n
k.w = n
k.z = g
k.x = e
k.r = e
k.q = i
j.z = h
j.u = h
j.s = c
j.w = c
j.o = a
e.r = i
i.w = e
i.o = c
i.z = c
i.v = n
assert e.r.v.q.w.r.o.r.txt == "i"