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

class B:
    def __init__(self, txt: str):
        self.p: A = None
        self.s: G = None
        self.x: F = None
        self.u: F = None
        self.y: A = None
        self.r: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: B = None
        self.y: D = None
        self.q: G = None
        self.p: G = None
        self.s: D = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: D = None
        self.p: H = None
        self.w: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: C = None
        self.w: G = None
        self.r: C = None
        self.y: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: E = None
        self.t: C = None
        self.o: B = None
        self.r: B = None
        self.p: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: A = None
        self.s: G = None
        self.x: F = None
        self.u: F = None
        self.y: A = None
        self.r: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: B = None
        self.y: D = None
        self.q: G = None
        self.p: G = None
        self.s: D = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: D = None
        self.p: H = None
        self.w: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: C = None
        self.w: G = None
        self.r: C = None
        self.y: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: E = None
        self.t: C = None
        self.o: B = None
        self.r: B = None
        self.p: E = None
        self.txt = txt

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

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