class A:
    def __init__(self, txt: str):
        self.p: B = None
        self.o: C = None
        self.y: F = None
        self.u: C = None
        self.t: H = None
        self.r: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: B = None
        self.u: H = None
        self.s: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: F = None
        self.w: B = None
        self.s: C = None
        self.txt = txt

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.v: B = None
        self.u: H = None
        self.s: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: F = None
        self.w: B = None
        self.s: C = None
        self.txt = txt

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

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

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

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

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

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