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

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

class C:
    def __init__(self, txt: str):
        self.q: B = None
        self.z: B = None
        self.t: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: C = None
        self.u: E = None
        self.o: B = None
        self.s: H = None
        self.r: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: G = None
        self.r: E = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: G = None
        self.o: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: B = None
        self.v: E = None
        self.r: G = None
        self.txt = txt

b = A("b")
e = B("e")
g = C("g")
j = D("j")
c = E("c")
i = F("i")
m = G("m")
a = H("a")
k = A("k")
h = E("h")

b.r = g
b.w = a
b.y = m
b.o = m
b.t = j
b.z = i
e.y = m
g.q = e
g.z = e
g.t = i
j.y = g
j.u = h
j.o = e
j.s = a
j.r = m
c.t = m
c.r = h
i.r = m
i.o = j
m.s = e
a.y = e
a.v = c
a.r = m
k.r = g
k.w = a
k.y = m
k.o = m
k.t = j
k.z = i
h.t = m
h.r = c
assert j.r.s.y.txt == "
class A:
    def __init__(self, txt: str):
        self.r: C = None
        self.w: H = None
        self.y: G = None
        self.t: D = None
        self.z: F = None
        self.o: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.q: B = None
        self.z: B = None
        self.t: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: C = None
        self.u: E = None
        self.o: B = None
        self.s: H = None
        self.r: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: G = None
        self.r: E = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: G = None
        self.o: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: B = None
        self.v: E = None
        self.r: G = None
        self.txt = txt

b = A("b")
e = B("e")
g = C("g")
j = D("j")
c = E("c")
i = F("i")
m = G("m")
a = H("a")
k = A("k")
h = E("h")

b.r = g
b.w = a
b.y = m
b.o = m
b.t = j
b.z = i
e.y = m
g.q = e
g.z = e
g.t = i
j.y = g
j.u = h
j.o = e
j.s = a
j.r = m
c.t = m
c.r = h
i.r = m
i.o = j
m.s = e
a.y = e
a.v = c
a.r = m
k.r = g
k.w = a
k.y = m
k.o = m
k.t = j
k.z = i
h.t = m
h.r = c
assert j.r.s.y.txt == "m"