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

class B:
    def __init__(self, txt: str):
        self.s: A = None
        self.x: C = None
        self.z: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: B = None
        self.q: C = None
        self.w: D = None
        self.p: F = None
        self.v: A = None
        self.u: E = None
        self.txt = txt

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

h = A("h")
e = B("e")
c = C("c")
l = D("l")
j = E("j")
a = F("a")
n = A("n")
g = F("g")
i = E("i")
f = C("f")

h.s = c
h.x = i
h.v = n
e.s = h
e.x = c
e.z = f
c.u = h
c.v = g
l.r = i
j.x = e
j.q = c
j.w = l
j.p = g
j.v = n
j.u = i
a.p = l
a.o = i
a.q = n
n.s = c
n.x = i
n.v = h
g.p = l
g.o = j
g.q = n
i.x = e
i.q = f
i.w = l
i.p = g
i.v = n
i.u = j
f.u = h
f.v = g
assert l.r.q.u.v.v.s.u.x.txt == "
class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.x: E = None
        self.v: A = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: A = None
        self.x: C = None
        self.z: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: B = None
        self.q: C = None
        self.w: D = None
        self.p: F = None
        self.v: A = None
        self.u: E = None
        self.txt = txt

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

h = A("h")
e = B("e")
c = C("c")
l = D("l")
j = E("j")
a = F("a")
n = A("n")
g = F("g")
i = E("i")
f = C("f")

h.s = c
h.x = i
h.v = n
e.s = h
e.x = c
e.z = f
c.u = h
c.v = g
l.r = i
j.x = e
j.q = c
j.w = l
j.p = g
j.v = n
j.u = i
a.p = l
a.o = i
a.q = n
n.s = c
n.x = i
n.v = h
g.p = l
g.o = j
g.q = n
i.x = e
i.q = f
i.w = l
i.p = g
i.v = n
i.u = j
f.u = h
f.v = g
assert l.r.q.u.v.v.s.u.x.txt == "i"