class A:
    def __init__(self, txt: str):
        self.z: E = None
        self.r: D = None
        self.t: C = None
        self.v: C = None
        self.p: B = None
        self.w: C = None
        self.txt = txt

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

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

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

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

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

m = A("m")
f = B("f")
j = C("j")
i = D("i")
h = E("h")
c = F("c")
g = B("g")
e = C("e")
a = C("a")

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

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

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

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

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

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

m = A("m")
f = B("f")
j = C("j")
i = D("i")
h = E("h")
c = F("c")
g = B("g")
e = C("e")
a = C("a")

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