class A:
    def __init__(self, txt: str):
        self.p: G = None
        self.x: F = None
        self.z: F = None
        self.u: F = None
        self.w: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: D = None
        self.v: A = None
        self.w: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: B = None
        self.u: A = None
        self.x: H = None
        self.q: H = None
        self.s: C = None
        self.o: C = None
        self.v: A = None
        self.r: C = None
        self.w: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: H = None
        self.v: B = None
        self.t: A = None
        self.q: H = None
        self.o: I = None
        self.p: C = None
        self.s: G = None
        self.u: B = None
        self.r: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: F = None
        self.y: E = None
        self.z: C = None
        self.p: D = None
        self.o: E = None
        self.s: I = None
        self.t: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: H = None
        self.q: E = None
        self.p: G = None
        self.v: B = None
        self.o: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: F = None
        self.s: C = None
        self.o: H = None
        self.p: G = None
        self.x: F = None
        self.t: H = None
        self.z: A = None
        self.q: G = None
        self.txt = txt

l = A("l")
b = B("b")
g = C("g")
m = D("m")
h = E("h")
d = F("d")
f = G("f")
k = H("k")
n = I("n")
a = H("a")

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

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

class C:
    def __init__(self, txt: str):
        self.u: D = None
        self.v: A = None
        self.w: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: B = None
        self.u: A = None
        self.x: H = None
        self.q: H = None
        self.s: C = None
        self.o: C = None
        self.v: A = None
        self.r: C = None
        self.w: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: H = None
        self.v: B = None
        self.t: A = None
        self.q: H = None
        self.o: I = None
        self.p: C = None
        self.s: G = None
        self.u: B = None
        self.r: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: F = None
        self.y: E = None
        self.z: C = None
        self.p: D = None
        self.o: E = None
        self.s: I = None
        self.t: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: H = None
        self.q: E = None
        self.p: G = None
        self.v: B = None
        self.o: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: F = None
        self.s: C = None
        self.o: H = None
        self.p: G = None
        self.x: F = None
        self.t: H = None
        self.z: A = None
        self.q: G = None
        self.txt = txt

l = A("l")
b = B("b")
g = C("g")
m = D("m")
h = E("h")
d = F("d")
f = G("f")
k = H("k")
n = I("n")
a = H("a")

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