class A:
    def __init__(self, txt: str):
        self.q: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: E = None
        self.v: C = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.t: C = None
        self.u: G = None
        self.o: A = None
        self.v: F = None
        self.z: C = None
        self.txt = txt

l = A("l")
g = B("g")
a = C("a")
i = D("i")
k = E("k")
e = F("e")
f = G("f")
d = H("d")
j = F("j")

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

class B:
    def __init__(self, txt: str):
        self.t: E = None
        self.v: C = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.t: C = None
        self.u: G = None
        self.o: A = None
        self.v: F = None
        self.z: C = None
        self.txt = txt

l = A("l")
g = B("g")
a = C("a")
i = D("i")
k = E("k")
e = F("e")
f = G("f")
d = H("d")
j = F("j")

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