class A:
    def __init__(self, txt: str):
        self.x: D = None
        self.q: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: E = None
        self.u: E = None
        self.o: E = None
        self.r: E = None
        self.t: C = None
        self.txt = txt

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

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

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

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

l = A("l")
h = B("h")
i = C("i")
k = D("k")
n = E("n")
j = F("j")
c = D("c")
b = B("b")
m = A("m")
e = C("e")

l.x = c
l.q = n
h.s = n
h.u = n
h.o = n
h.r = n
h.t = i
i.y = j
k.t = j
n.v = j
n.x = e
j.t = n
c.t = j
b.s = n
b.u = n
b.o = n
b.r = n
b.t = e
m.x = k
m.q = n
e.y = j
assert i.y.t.v.t.x.y.t.v.txt == "
class A:
    def __init__(self, txt: str):
        self.x: D = None
        self.q: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: E = None
        self.u: E = None
        self.o: E = None
        self.r: E = None
        self.t: C = None
        self.txt = txt

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

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

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

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

l = A("l")
h = B("h")
i = C("i")
k = D("k")
n = E("n")
j = F("j")
c = D("c")
b = B("b")
m = A("m")
e = C("e")

l.x = c
l.q = n
h.s = n
h.u = n
h.o = n
h.r = n
h.t = i
i.y = j
k.t = j
n.v = j
n.x = e
j.t = n
c.t = j
b.s = n
b.u = n
b.o = n
b.r = n
b.t = e
m.x = k
m.q = n
e.y = j
assert i.y.t.v.t.x.y.t.v.txt == "j"