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

class B:
    def __init__(self, txt: str):
        self.o: H = None
        self.z: A = None
        self.t: E = None
        self.r: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: G = None
        self.y: F = None
        self.q: F = None
        self.s: G = None
        self.v: F = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.o: H = None
        self.z: A = None
        self.t: E = None
        self.r: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: G = None
        self.y: F = None
        self.q: F = None
        self.s: G = None
        self.v: F = None
        self.txt = txt

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

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

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

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

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