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

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

class C:
    def __init__(self, txt: str):
        self.o: F = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.o: D = None
        self.u: G = None
        self.v: G = None
        self.t: C = None
        self.p: B = None
        self.s: G = None
        self.q: A = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: F = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.o: D = None
        self.u: G = None
        self.v: G = None
        self.t: C = None
        self.p: B = None
        self.s: G = None
        self.q: A = None
        self.txt = txt

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

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

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

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