class A:
    def __init__(self, txt: str):
        self.u: D = None
        self.x: B = None
        self.w: B = None
        self.z: E = None
        self.y: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.z: A = None
        self.y: G = None
        self.q: E = None
        self.w: F = None
        self.u: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: D = None
        self.s: B = None
        self.v: A = None
        self.x: D = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: B = None
        self.y: D = None
        self.x: A = None
        self.q: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: B = None
        self.s: D = None
        self.v: A = None
        self.r: F = None
        self.p: D = None
        self.q: D = None
        self.txt = txt

g = A("g")
j = B("j")
h = C("h")
k = D("k")
d = E("d")
c = F("c")
i = G("i")
f = D("f")
m = A("m")

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

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

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.z: A = None
        self.y: G = None
        self.q: E = None
        self.w: F = None
        self.u: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: D = None
        self.s: B = None
        self.v: A = None
        self.x: D = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: B = None
        self.y: D = None
        self.x: A = None
        self.q: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: B = None
        self.s: D = None
        self.v: A = None
        self.r: F = None
        self.p: D = None
        self.q: D = None
        self.txt = txt

g = A("g")
j = B("j")
h = C("h")
k = D("k")
d = E("d")
c = F("c")
i = G("i")
f = D("f")
m = A("m")

g.u = f
g.y = f
g.x = j
g.w = j
g.z = d
j.s = c
j.y = c
h.o = g
h.z = m
h.y = i
h.q = d
h.w = c
h.u = f
k.t = f
k.x = f
k.s = j
k.v = m
d.q = m
d.p = c
d.t = f
d.y = i
c.t = j
c.y = f
c.q = f
c.x = g
i.u = j
i.s = f
i.v = g
i.r = c
i.p = k
i.q = k
f.t = k
f.x = k
f.s = j
f.v = g
m.u = k
m.y = k
m.x = j
m.w = j
m.z = d
assert g.z.y.v.x.s.t.txt == "j"