class A:
    def __init__(self, txt: str):
        self.t: F = None
        self.w: E = None
        self.s: E = None
        self.y: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: B = None
        self.x: F = None
        self.y: A = None
        self.w: D = None
        self.r: B = None
        self.txt = txt

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

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

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

j = A("j")
c = B("c")
b = C("b")
g = D("g")
f = E("f")
m = F("m")
d = E("d")
l = A("l")

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

class B:
    def __init__(self, txt: str):
        self.o: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: B = None
        self.x: F = None
        self.y: A = None
        self.w: D = None
        self.r: B = None
        self.txt = txt

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

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

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

j = A("j")
c = B("c")
b = C("b")
g = D("g")
f = E("f")
m = F("m")
d = E("d")
l = A("l")

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