unittest
{
	assert( [ "2017/01/07" ].parse.expand.solve == "2018/01/07" );
	assert( [ "2017/01/31" ].parse.expand.solve == "2018/01/31" );
}



import std.conv;
import std.range;
import std.stdio;
import std.string;
import std.typecons;

void main()
{
	stdin.byLineCopy.parse.expand.solve.writeln;
}

auto parse( Range )( Range input )
if( isInputRange!Range && is( ElementType!Range == string ) )
{
	auto s = input.front.strip;
	return tuple( s );
}

auto solve( string s )
{
	return replace( s, "2017", "2018" );
}
