class A:
    def __init__(self, txt: str):
        self.o: B = None
        self.z: E = None
        self.r: D = None
        self.w: D = None
        self.p: B = None
        self.q: F = None
        self.s: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: F = None
        self.z: C = None
        self.w: D = None
        self.v: B = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: C = None
        self.y: E = None
        self.o: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: G = None
        self.y: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: E = None
        self.s: B = None
        self.t: E = None
        self.r: G = None
        self.q: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: D = None
        self.u: C = None
        self.y: B = None
        self.txt = txt

b = A("b")
j = B("j")
a = C("a")
l = D("l")
d = E("d")
i = F("i")
g = G("g")
n = B("n")
k = B("k")
e = C("e")

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

class B:
    def __init__(self, txt: str):
        self.q: F = None
        self.z: C = None
        self.w: D = None
        self.v: B = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: C = None
        self.y: E = None
        self.o: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: G = None
        self.y: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: E = None
        self.s: B = None
        self.t: E = None
        self.r: G = None
        self.q: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: D = None
        self.u: C = None
        self.y: B = None
        self.txt = txt

b = A("b")
j = B("j")
a = C("a")
l = D("l")
d = E("d")
i = F("i")
g = G("g")
n = B("n")
k = B("k")
e = C("e")

b.o = j
b.z = d
b.r = l
b.w = l
b.p = k
b.q = i
b.s = a
j.q = i
j.z = a
j.w = l
j.v = n
a.u = e
a.y = d
a.o = i
l.v = g
l.y = g
d.z = j
i.x = d
i.t = d
i.s = j
i.r = g
i.q = b
g.p = l
g.u = e
g.y = k
n.q = i
n.z = e
n.w = l
n.v = j
k.q = i
k.z = e
k.w = l
k.v = n
e.u = a
e.y = d
e.o = i
assert e.u.o.q.z.z.v.z.y.z.txt == "j"