class A:
    def __init__(self, txt: str):
        self.w: H = None
        self.t: C = None
        self.q: B = None
        self.r: F = None
        self.z: F = None
        self.s: B = None
        self.x: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: A = None
        self.q: H = None
        self.w: E = None
        self.s: I = None
        self.p: A = None
        self.v: F = None
        self.y: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.w: C = None
        self.q: A = None
        self.r: F = None
        self.o: A = None
        self.s: F = None
        self.p: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: E = None
        self.x: D = None
        self.w: D = None
        self.t: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: B = None
        self.o: A = None
        self.x: F = None
        self.s: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.q: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: A = None
        self.q: H = None
        self.w: E = None
        self.s: I = None
        self.p: A = None
        self.v: F = None
        self.y: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.w: C = None
        self.q: A = None
        self.r: F = None
        self.o: A = None
        self.s: F = None
        self.p: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: E = None
        self.x: D = None
        self.w: D = None
        self.t: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: B = None
        self.o: A = None
        self.x: F = None
        self.s: F = None
        self.txt = txt

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

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