class A:
    def __init__(self, txt: str):
        self.v: F = None
        self.t: C = None
        self.r: D = None
        self.s: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.u: D = None
        self.t: D = None
        self.o: B = None
        self.x: F = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.w: F = None
        self.u: B = None
        self.p: F = None
        self.y: E = None
        self.x: E = None
        self.txt = txt

j = A("j")
l = B("l")
g = C("g")
m = D("m")
i = E("i")
e = F("e")
d = F("d")

j.v = e
j.t = g
j.r = m
j.s = d
l.o = i
l.r = g
l.w = j
g.z = m
g.u = m
g.t = m
g.o = l
g.x = e
m.o = i
i.w = g
i.t = m
i.u = d
e.w = d
e.p = d
e.u = l
e.y = i
e.x = i
d.w = e
d.p = e
d.u = l
d.y = i
d.x = i
assert e.p.w.u.o.t.o.t.txt == "
class A:
    def __init__(self, txt: str):
        self.v: F = None
        self.t: C = None
        self.r: D = None
        self.s: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.u: D = None
        self.t: D = None
        self.o: B = None
        self.x: F = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.w: F = None
        self.u: B = None
        self.p: F = None
        self.y: E = None
        self.x: E = None
        self.txt = txt

j = A("j")
l = B("l")
g = C("g")
m = D("m")
i = E("i")
e = F("e")
d = F("d")

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