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

class B:
    def __init__(self, txt: str):
        self.p: A = None
        self.o: G = None
        self.w: B = None
        self.z: G = None
        self.s: B = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.y: G = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: A = None
        self.o: G = None
        self.w: B = None
        self.z: G = None
        self.s: B = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.y: G = None
        self.txt = txt

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

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

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