local ffi = require 'ffi' local C, ct = ffi.C, ffi.typeof 'uint8_t[1]' ffi.cdef 'int scanf(const char *, ...);' print((function (c) local a,i,t,r={226,128,166},1,0,0 while C.scanf("%c",c)==1 do if c[0]==a[i] then if i==3 then i,t=1,t+1 else i=i+1 end else i,t,r=1,0,t>r and t or r end end return r end)(ct()))