class A:
    def __init__(self, txt: str):
        self.o: G = None
        self.s: I = None
        self.p: I = None
        self.w: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: D = None
        self.q: H = None
        self.r: I = None
        self.o: D = None
        self.t: A = None
        self.y: I = None
        self.x: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: G = None
        self.p: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: H = None
        self.p: F = None
        self.o: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: E = None
        self.q: H = None
        self.r: B = None
        self.w: E = None
        self.p: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: A = None
        self.txt = txt

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

e = A("e")
b = B("b")
n = C("n")
d = D("d")
c = E("c")
h = F("h")
a = G("a")
j = H("j")
l = I("l")
k = B("k")

e.o = a
e.w = a
e.s = l
e.p = l
b.x = c
n.s = d
n.o = d
n.q = j
n.r = l
n.y = l
n.t = e
n.x = k
d.q = a
d.p = n
c.y = j
c.p = h
c.o = d
h.v = c
h.u = d
h.w = e
h.r = b
a.y = c
a.w = c
a.q = j
a.r = b
a.p = e
j.r = e
l.x = h
l.t = c
l.q = a
k.x = c
assert b.x.p.u.q.r.x.y.txt == "
class A:
    def __init__(self, txt: str):
        self.o: G = None
        self.s: I = None
        self.p: I = None
        self.w: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: D = None
        self.q: H = None
        self.r: I = None
        self.o: D = None
        self.t: A = None
        self.y: I = None
        self.x: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: G = None
        self.p: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: H = None
        self.p: F = None
        self.o: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: E = None
        self.q: H = None
        self.r: B = None
        self.w: E = None
        self.p: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: A = None
        self.txt = txt

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

e = A("e")
b = B("b")
n = C("n")
d = D("d")
c = E("c")
h = F("h")
a = G("a")
j = H("j")
l = I("l")
k = B("k")

e.o = a
e.w = a
e.s = l
e.p = l
b.x = c
n.s = d
n.o = d
n.q = j
n.r = l
n.y = l
n.t = e
n.x = k
d.q = a
d.p = n
c.y = j
c.p = h
c.o = d
h.v = c
h.u = d
h.w = e
h.r = b
a.y = c
a.w = c
a.q = j
a.r = b
a.p = e
j.r = e
l.x = h
l.t = c
l.q = a
k.x = c
assert b.x.p.u.q.r.x.y.txt == "j"