class A:
    def __init__(self, txt: str):
        self.r: E = None
        self.t: C = None
        self.w: C = None
        self.x: D = None
        self.s: E = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.t: B = None
        self.y: F = None
        self.x: A = None
        self.u: C = None
        self.p: C = None
        self.z: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: E = None
        self.o: B = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.t: B = None
        self.y: F = None
        self.x: A = None
        self.u: C = None
        self.p: C = None
        self.z: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: E = None
        self.o: B = None
        self.txt = txt

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

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

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