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

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

class C:
    def __init__(self, txt: str):
        self.s: G = None
        self.t: D = None
        self.z: D = None
        self.txt = txt

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

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

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

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

j = A("j")
f = B("f")
b = C("b")
g = D("g")
k = E("k")
l = F("l")
m = G("m")
e = D("e")
c = E("c")
h = F("h")

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

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

class C:
    def __init__(self, txt: str):
        self.s: G = None
        self.t: D = None
        self.z: D = None
        self.txt = txt

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

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

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

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

j = A("j")
f = B("f")
b = C("b")
g = D("g")
k = E("k")
l = F("l")
m = G("m")
e = D("e")
c = E("c")
h = F("h")

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