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

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

class C:
    def __init__(self, txt: str):
        self.x: F = None
        self.v: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: G = None
        self.t: A = None
        self.z: B = None
        self.y: A = None
        self.r: F = None
        self.u: A = None
        self.w: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: F = None
        self.y: A = None
        self.t: E = None
        self.s: G = None
        self.w: E = None
        self.v: B = None
        self.z: F = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: E = None
        self.r: C = None
        self.s: F = None
        self.txt = txt

b = A("b")
n = B("n")
f = C("f")
i = D("i")
h = E("h")
l = F("l")
j = G("j")
d = A("d")
e = F("e")
c = B("c")

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

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

class C:
    def __init__(self, txt: str):
        self.x: F = None
        self.v: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: G = None
        self.t: A = None
        self.z: B = None
        self.y: A = None
        self.r: F = None
        self.u: A = None
        self.w: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: F = None
        self.y: A = None
        self.t: E = None
        self.s: G = None
        self.w: E = None
        self.v: B = None
        self.z: F = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: E = None
        self.r: C = None
        self.s: F = None
        self.txt = txt

b = A("b")
n = B("n")
f = C("f")
i = D("i")
h = E("h")
l = F("l")
j = G("j")
d = A("d")
e = F("e")
c = B("c")

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