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

class B:
    def __init__(self, txt: str):
        self.q: F = None
        self.u: F = None
        self.y: E = None
        self.s: F = None
        self.z: A = None
        self.p: G = None
        self.w: G = None
        self.txt = txt

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

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.q: F = None
        self.u: F = None
        self.y: E = None
        self.s: F = None
        self.z: A = None
        self.p: G = None
        self.w: G = None
        self.txt = txt

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

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

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

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

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

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

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