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

class B:
    def __init__(self, txt: str):
        self.t: F = None
        self.o: C = None
        self.v: A = None
        self.x: G = None
        self.z: H = None
        self.r: C = None
        self.s: E = None
        self.p: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: C = None
        self.q: G = None
        self.w: F = None
        self.r: A = None
        self.t: F = None
        self.u: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: G = None
        self.s: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: H = None
        self.t: C = None
        self.s: F = None
        self.q: C = None
        self.y: C = None
        self.r: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: F = None
        self.o: C = None
        self.v: A = None
        self.x: G = None
        self.z: H = None
        self.r: C = None
        self.s: E = None
        self.p: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: C = None
        self.q: G = None
        self.w: F = None
        self.r: A = None
        self.t: F = None
        self.u: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: G = None
        self.s: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: H = None
        self.t: C = None
        self.s: F = None
        self.q: C = None
        self.y: C = None
        self.r: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: C = None
        self.txt = txt

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

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