class A:
    def __init__(self, txt: str):
        self.t: F = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.o: B = None
        self.q: A = None
        self.z: E = None
        self.p: B = None
        self.v: C = None
        self.u: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.x: E = None
        self.y: D = None
        self.w: E = None
        self.p: C = None
        self.txt = txt

g = A("g")
e = B("e")
m = C("m")
f = D("f")
l = E("l")
j = F("j")
c = G("c")
b = E("b")

g.t = j
e.o = c
e.r = f
e.u = j
m.u = b
m.q = j
f.o = e
f.p = e
f.u = e
f.q = g
f.z = l
f.v = m
l.y = e
l.s = m
j.v = e
j.x = g
j.w = m
j.z = m
j.o = l
c.x = l
c.w = l
c.y = f
c.p = m
b.y = e
b.s = m
assert g.t.v.u.x.t.z.txt == "
class A:
    def __init__(self, txt: str):
        self.t: F = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.o: B = None
        self.q: A = None
        self.z: E = None
        self.p: B = None
        self.v: C = None
        self.u: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.x: E = None
        self.y: D = None
        self.w: E = None
        self.p: C = None
        self.txt = txt

g = A("g")
e = B("e")
m = C("m")
f = D("f")
l = E("l")
j = F("j")
c = G("c")
b = E("b")

g.t = j
e.o = c
e.r = f
e.u = j
m.u = b
m.q = j
f.o = e
f.p = e
f.u = e
f.q = g
f.z = l
f.v = m
l.y = e
l.s = m
j.v = e
j.x = g
j.w = m
j.z = m
j.o = l
c.x = l
c.w = l
c.y = f
c.p = m
b.y = e
b.s = m
assert g.t.v.u.x.t.z.txt == "m"