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

class B:
    def __init__(self, txt: str):
        self.u: E = None
        self.r: B = None
        self.o: A = None
        self.y: F = None
        self.txt = txt

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

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

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

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

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

g.u = k
g.q = m
g.x = i
g.o = b
g.w = l
g.z = d
i.u = h
i.r = d
i.o = g
i.y = k
e.x = h
e.u = d
m.y = e
h.x = e
h.u = m
h.v = m
k.t = l
l.x = e
l.u = m
l.v = m
b.u = k
b.q = m
b.x = i
b.z = i
b.o = c
b.w = h
d.u = l
d.r = i
d.o = c
d.y = k
c.u = k
c.q = m
c.x = d
c.o = g
c.w = l
c.z = i
assert e.u.y.t.x.u.o.w.txt == "
class A:
    def __init__(self, txt: str):
        self.u: F = None
        self.q: D = None
        self.x: B = None
        self.o: A = None
        self.w: E = None
        self.z: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: E = None
        self.r: B = None
        self.o: A = None
        self.y: F = None
        self.txt = txt

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

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

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

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

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

g.u = k
g.q = m
g.x = i
g.o = b
g.w = l
g.z = d
i.u = h
i.r = d
i.o = g
i.y = k
e.x = h
e.u = d
m.y = e
h.x = e
h.u = m
h.v = m
k.t = l
l.x = e
l.u = m
l.v = m
b.u = k
b.q = m
b.x = i
b.z = i
b.o = c
b.w = h
d.u = l
d.r = i
d.o = c
d.y = k
c.u = k
c.q = m
c.x = d
c.o = g
c.w = l
c.z = i
assert e.u.y.t.x.u.o.w.txt == "l"