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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.o: G = None
        self.s: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: C = None
        self.z: F = None
        self.o: A = None
        self.q: A = None
        self.s: E = None
        self.r: E = None
        self.v: C = None
        self.txt = txt

f = A("f")
j = B("j")
g = C("g")
d = D("d")
h = E("h")
e = F("e")
i = G("i")
l = E("l")

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.o: G = None
        self.s: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: C = None
        self.z: F = None
        self.o: A = None
        self.q: A = None
        self.s: E = None
        self.r: E = None
        self.v: C = None
        self.txt = txt

f = A("f")
j = B("j")
g = C("g")
d = D("d")
h = E("h")
e = F("e")
i = G("i")
l = E("l")

f.x = g
f.o = l
f.s = i
f.v = j
f.p = d
j.s = h
j.r = g
j.o = l
g.r = f
g.z = h
d.p = i
h.t = l
h.o = l
h.p = l
h.s = g
h.y = e
h.u = f
e.o = i
e.s = d
i.x = g
i.v = g
i.z = e
i.o = f
i.q = f
i.s = l
i.r = l
l.t = h
l.o = h
l.p = h
l.s = g
l.y = e
l.u = f
assert d.p.x.z.t.txt == "l"